Skip to content
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

prerendering routes #125

Open
terrablue opened this issue Jun 8, 2024 · 0 comments
Open

prerendering routes #125

terrablue opened this issue Jun 8, 2024 · 0 comments
Milestone

Comments

@terrablue
Copy link
Contributor

Use cases: static websites, partially static websites.

Possible approaches:

  • some (or all) routes are SSR'd at startup into static files, using some pseudo-request object, because they only contain static information
  • blockers: using request.session in a route should throw a CannotPrerenderError, because sessions are unique to users; same for using request.store
  • we could prerender an entire application, add a export const prerender = true; to a route file (would apply only to the GET route, in such a case the route file may not contain other HTTP verbs), and/or automatically prerender all routes which look like filenames: for example, routes/sitemap.xml.js
@terrablue terrablue added this to the 0.32.0 milestone Jun 9, 2024
@terrablue terrablue modified the milestones: 0.32.0, 0.33.0 Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant