How do I globally disable prerendering? #10771
Unanswered
steve-taylor
asked this question in
Q&A
Replies: 1 comment 8 replies
-
Prerender is disabled by default. However:
// src/routes/+layout.js
export const prerender = false; // this disables prerender for all pages affected by the layout |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to completely disable pre-rendering. I only want server-side-rendered pages to be dynamically rendered. I don't want the build process to execute any of my code at build time. How do I globally configure SvelteKit to not pre-rendering in one place as opposed to having to remember to disable it on every single page as I keep adding more pages?
Beta Was this translation helpful? Give feedback.
All reactions