-
-
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
Adapter-static: Check +page.server.js files #10483
Comments
Closing as duplicate of #10332 . Btw you don't need |
@dummdidumm I think you are mistaken. I have |
That would be a bug, do you have a reproducible? Note that |
I was talking about I guess I was in the wrong here, sorry for the false alarm. |
Describe the problem
I am currently building a website with adapter-static and I have a few routes that use a
+page.server.js
file.I can build those routes with the adapter easily if I have:
For each of those
+page.server.js
.I also need to have
export let ssr = true
at the root of my app to make sure the server functions are executed during the generation.What I find frustrating currently is that, if I forget to have
export let prerender = true
in one of my+page.server.js
, the build is successful, but the app does not work.Describe the proposed solution
I would like the adapter to check that, if there is a
+page.server.js
with aload()
function, it should have a specificexport let prerender = true
andexport let ssr = true
should be also activated.If not, it should raise an error or a warning.
Alternatives considered
Manual checks
Importance
would make my life easier
Additional Information
No response
The text was updated successfully, but these errors were encountered: