diff --git a/examples/tiptap/publish-reflect.js b/examples/tiptap/publish-reflect.js index dd57ede..c46b632 100644 --- a/examples/tiptap/publish-reflect.js +++ b/examples/tiptap/publish-reflect.js @@ -1,5 +1,6 @@ const { spawn } = require("child_process"); const fs = require("fs"); +var path = require("path"); const appBaseName = "reflect-type"; const refName = getEnv( @@ -29,7 +30,10 @@ async function publish() { ); const url = lines[success + 1]; - fs.writeFileSync("./.env", `NEXT_PUBLIC_REFLECT_SERVER=${url}`); + fs.writeFileSync("./.env", `NEXT_PUBLIC_REFLECT_URL=${url}`); + + console.log("wrote env file at: ", path.resolve("./.env")); + console.log(fs.readFileSync("./.env").toString()); } function runCommand(command, args) { diff --git a/examples/tiptap/vercel.json b/examples/tiptap/vercel.json index 95ac2cd..9f851a0 100644 --- a/examples/tiptap/vercel.json +++ b/examples/tiptap/vercel.json @@ -1,4 +1,4 @@ { - "buildCommand": "turbo run build --force && node publish-reflect.js", + "buildCommand": "turbo run build --force && node publish-reflect.js && turbo run build --force", "installCommand": "npm install" }