You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating to version when config.kit.prerender.enabled param was removed and you have to specify either on layout or on +server.js files to disable prerender - I can't build with build-node since it fails because there is some ENV not present (which is true, they are not present at the build run, but they are later). But on previous versions it builds fine and doesn't try to prerender
Error I am getting
throw new Error("Missing Env Variable SOME_TOKEN");
^
Error: Missing Env Variable SOME_TOKEN
at createClient (file:///home/gbkwiatt/prerender-test/.svelte-kit/output/server/entries/endpoints/server_side/_server.js:5:11)
at file:///home/gbkwiatt/prerender-test/.svelte-kit/output/server/entries/endpoints/server_side/_server.js:2:1
at ModuleJob.run (node:internal/modules/esm/module_job:198:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:409:24)
at async prerender (file:///home/gbkwiatt/prerender-test/node_modules/@sveltejs/kit/src/core/prerender/prerender.js:372:16)
which it comes from prerender but it should not even try to prerender ? What did I miss during migration ?
This is expected behavior as of #7762 which also contains some tips on how to keep your code running (using the building boolean to guard against executing that code). Giving this the documentation label since this is currently only documented on the building boolean and it's probably good to have it mentioned somewhere else, too.
This is now covered in https://kit.svelte.dev/docs/building-your-app and the logs during building also give a more clear status on what's currently happening ("analysing routes" etc)
Describe the bug
After updating to version when
config.kit.prerender.enabled
param was removed and you have to specify either on layout or on +server.js files to disable prerender - I can't build with build-node since it fails because there is some ENV not present (which is true, they are not present at the build run, but they are later). But on previous versions it builds fine and doesn't try to prerenderError I am getting
which it comes from prerender but it should not even try to prerender ? What did I miss during migration ?
Reproduction
here is reproduction, just run
npm run build
https://github.com/gbkwiatt/sveltekit-prerender-test
Logs
No response
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: