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

cli: docusaurus serve #3062

Closed
slorber opened this issue Jul 15, 2020 · 2 comments · Fixed by #3080
Closed

cli: docusaurus serve #3062

slorber opened this issue Jul 15, 2020 · 2 comments · Fixed by #3080
Labels
feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future. mlh Major League Hacking Fellowship

Comments

@slorber
Copy link
Collaborator

slorber commented Jul 15, 2020

🚀 Feature

Not all Docusaurus users are familiar with Docusaurus, and frontend SPA tooling in general.

Some Docusaurus things only work for the production build (like the redirects plugin), yet we don't really explain how to test this production build locally, we only explain how to deploy to various hosting solutions.

We should offer an easy way for the users to test the production build locally.

There are many ways to host a frontend locally, that will work more or less well with Docusaurus. We should offer an official way, and write docs for it, so that the user does not need to figure out which solution to try, otherwise we'll end up with users losing time, using overkill http servers like Apache etc...

So, I think we need a cli docusaurus serve that, by default, would serve the build folder (but could be made configurable like dir/port etc).

The serve lib, maintained by Vercel, has worked nicely for me.

Related:

@slorber slorber added feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future. status: needs triage This issue has not been triaged by maintainers mlh Major League Hacking Fellowship and removed status: needs triage This issue has not been triaged by maintainers labels Jul 15, 2020
@anshulrgoyal
Copy link
Contributor

one of the user also complained about same on discord

@anshulrgoyal
Copy link
Contributor

I will take this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future. mlh Major League Hacking Fellowship
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants