You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unlike the handle hook, middleware runs on all requests, including for static assets and prerendered pages. If using server-side route resolution this means it runs prior to all navigations, no matter client- or server-side.
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.ts
such asserver: true
.prerender
option such asprotected
.prerender
option 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
The text was updated successfully, but these errors were encountered: