-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
Is sirv-cli an alternative to http-server? #4
Comments
Hey, yes it is. However there are a few dozen alternatives in this space, so how do you recommend I approach amending the readme without listing all of them? 😅 Genuinely asking |
Might work to just include it in the benchmark comparisons, that'd at least have it turn up in GH/Google searches. |
Suggestion: Many SPAs deployed on CDN now put a 404.html (incl the same js as index.html) in the public dir. The idea is that if YOU visit a link shared by ME, the 404.html will be served and the client-side router will take care of the correct application-level routing. Would be great if sirv took care of this i.e. if a 404.html exists, then serve it, otherwise respond as now with a default 404 response status. |
Hey @andymans, if you're using This is because most client-side apps will have their own 404 handler once mounted, so If you need more control than this, you can use |
Fantastic! Just what I was looking for. I hadn't spotted the --single flag. Thx. |
Finally got around to adding benchmark comparison to Compact view:
|
If so – mention in the readme?
The text was updated successfully, but these errors were encountered: