-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't seem to disable SSR compilation #6473
Comments
Add |
This is no longer valid: https://github.com/anicolao/svelte-ssr-bug/blob/c3dbdda7882e2edf1060c07a02532f3adb988fb3/src/hooks.js#L2 Please set it in your |
Verified this fix works, might have been nice if there had been an error similar to the one for |
whoops — thought we had an error for that case, but the check was buggy. opened #6475 |
Describe the bug
Yesterday, I was able to avoid SSR compilation with the following code in
hooks.js
:Then, late last night I updated to
next
and had to move theprerender
default out to+layout.js
so I thought I was having a problem relating to #6197 ... but whatever the cause, files that don't compile in a node environment are being compiled as though I have SSR enabled and I think they shouldn't be.Reproduction
Here is the smallest repro I could make: https://github.com/anicolao/svelte-ssr-bug
npm run build
Logs
No response
System Info
Severity
blocking an upgrade
Additional Information
No response
The text was updated successfully, but these errors were encountered: