-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Labels
feature / enhancementNew feature or requestNew feature or request
Description
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 asserver: true
. - Add another value for the current
prerender
option such asprotected
. - (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
Metadata
Metadata
Assignees
Labels
feature / enhancementNew feature or requestNew feature or request