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

Should have the ability to statically export server rendered routes as just HTML #879

Closed
1 of 5 tasks
Tracked by #956
thescientist13 opened this issue Feb 9, 2022 · 0 comments · Fixed by #921 or #956
Closed
1 of 5 tasks
Tracked by #956
Assignees
Labels
alpha.0 CLI documentation Greenwood specific docs feature New feature or request SSR v0.26.0
Milestone

Comments

@thescientist13
Copy link
Member

thescientist13 commented Feb 9, 2022

Type of Change

  • New Feature Request
  • Documentation / Website
  • Improvement / Suggestion
  • Bug
  • Other (please clarify below)

Summary

As part of supporting SSR, Greenwood should allow users the ability to statically pre-render a page with SSR strategies, even if just to output the contents of the page for static hosting.

notes from Sveltekit team on this from their own implementation analysis

Details

  1. Provide an API in getFrontmatter just for SSR routes called staticExport - or just use prerender API convention instead of something new? (or does pre-render imply hydration)
  2. Ensure this works for all compatibly renderers and plugin
  3. If that is enabled for a route, save the generated HTML to the appropriate file based routing location in the output directory
  4. If all routes enable this feature, then running yarn serve should effectively only need to start staticServer
@thescientist13 thescientist13 added P0 Critical issue that should get addressed ASAP documentation Greenwood specific docs CLI SSR feature New feature or request labels Feb 9, 2022
@thescientist13 thescientist13 added this to the 1.0 milestone Feb 9, 2022
@thescientist13 thescientist13 self-assigned this Feb 9, 2022
@thescientist13 thescientist13 removed the P0 Critical issue that should get addressed ASAP label Feb 9, 2022
@thescientist13 thescientist13 mentioned this issue Jul 1, 2022
19 tasks
@thescientist13 thescientist13 linked a pull request Jul 1, 2022 that will close this issue
19 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alpha.0 CLI documentation Greenwood specific docs feature New feature or request SSR v0.26.0
Projects
None yet
1 participant