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
This bug was explained in #4492, and #4604 was supposed to solve the issue, but it only does so if you explicitly disable prerendering in the configuration.
But it still makes no sense to me why SvelteKit would execute application code during build by default for adapter-node.
The text was updated successfully, but these errors were encountered:
aradalvand
changed the title
SvelteKit v1.0.0-next.312 still having the problem described in #4492
Application code shouldn't be executed during build even when prerendering is not explicitly disabled
Apr 14, 2022
This is not a bug, nor is it a recent change. If prerendering is enabled, SvelteKit needs to run your app. If you don't want to run your app during build, disable prerendering.
@Rich-Harris But it isn't. And I'm assuming prerendering is disabled by default, isn't it?! Then why do you need to explicitly set config.kit.prerender.enabled to false for this to take effect?!
Update: Please do post a comment to enlighten me after downvoting this, a thumbs-down isn't helpful on its own.
Describe the bug
This bug was explained in #4492, and #4604 was supposed to solve the issue, but it only does so if you explicitly disable prerendering in the configuration.
But it still makes no sense to me why SvelteKit would execute application code during build by default for adapter-node.
Reproduction
Described in #4492
Logs
No response
System Info
Severity
serious, but I can work around it
Additional Information
No response
The text was updated successfully, but these errors were encountered: