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

pre-render all the docs pages #46

Open
NullVoxPopuli opened this issue Jul 8, 2023 · 0 comments
Open

pre-render all the docs pages #46

NullVoxPopuli opened this issue Jul 8, 2023 · 0 comments

Comments

@NullVoxPopuli
Copy link
Contributor

NullVoxPopuli commented Jul 8, 2023

because the whole site is basically interpreted markdown and json, pre-rendering will probably improve render performance.

problem solved via fastboot "globals" file

This is proving difficult, because Fastboot does not have graceful fallbacks, and hard-errors for:

  • AbortController
  • document
  • matchMedia
  • localStorage

some of these, I can excuse, because node does not have document, matchMedia, or localStorage -- but it's not a good first time experience, tbh 🙃

AbortController should be supported tho... The docs' site fetches data with fetch + AbortController (the way you should)... so... I can't use fastboot or prember at this time.
Maybe I can look in to fastboot alternatives once embroider inverts the build tool.

https://twitter.com/brillout/status/1674342674038489088

Docs: https://vite-plugin-ssr.com/

WIP PR: #55

Apparently I need more test coverage, because post-deploy, this app doesn't work.

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