Describe the problem
I have an expensive static page which also happens to be a protected route.
I would love to prerender the page, but then it is not handled by SvelteKit.
Requests for static assets — which includes pages that were already prerendered — are not handled by SvelteKit.
https://kit.svelte.dev/docs/hooks#server-hooks-handle
Describe the proposed solution
- Add another page option in
+page|layout.server.ts such as server: true.
- Add another value for the current
prerender option such as protected.
- (Breaking) Convert the page
prerender option into an object?
type Prerender = { enabled: boolean; protected: boolean };
https://kit.svelte.dev/docs/page-options#prerender
I am sure there are other usage then protected, but it seemed the most intuitive.
Alternatives considered
No response
Importance
would make my life easier
Additional Information
No response
Describe the problem
I have an expensive static page which also happens to be a protected route.
I would love to prerender the page, but then it is not handled by SvelteKit.
https://kit.svelte.dev/docs/hooks#server-hooks-handle
Describe the proposed solution
+page|layout.server.tssuch asserver: true.prerenderoption such asprotected.prerenderoption into an object?https://kit.svelte.dev/docs/page-options#prerender
I am sure there are other usage then protected, but it seemed the most intuitive.
Alternatives considered
No response
Importance
would make my life easier
Additional Information
No response