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
feat(core): support an offline mode build - Hash Router solution #9859
base: main
Are you sure you want to change the base?
Conversation
✅ [V2]
To edit notification comments on pull requests, go to your Netlify site configuration. |
⚡️ Lighthouse report for the deploy preview of this PR
|
Size Change: -34.2 kB (-3%) Total Size: 958 kB
ℹ️ View Unchanged
|
Do not compile a server bundle that we won't use
Looking forward that this will be release in the future! |
What is the state of this? Is there anything we could help with to get this merged? |
Busy on other things. I'll try to get this merged for the next minor/major. The POC is working but I'm not sure it's super robust regarding edge cases. Maybe we could ship it as experimental first, and get early adopter feedback to fix bugs. |
Motivation
WIP/POC attempt to solve #3825 and make a Docusaurus build usable without a server, distributed as a
docs.zip
file for example.This attempt assumes we want to generate a single static
index.html
file, and use a hash router + client-side React to render the correct page:index.html/#
index.html/#/docs
index.html/#/docs/typescript-support
See possible solutions/alternatives here:
#3825 (comment)
It seems to be a reasonable approach, although we lose the ability to emit multiple static files (which is probably not a big deal?)
Test Plan
???
Test links