You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most of SPA which use html5 pushstate need a url rewrite when user directly access to an url which is not a file but a route (ex : refresh on /customers/1) and superstatic is great for that. I guess { "rewrites": [ {"source":"/**","destination":"/index.html"} ] } in superstatic.json is very common (index.html or default.html or whatever).
It would be great to have a command line argument for that, something like :
superstatic -ra index.html (ra for "rewrite all").
then the superstatic.json could be removed or used only for advanced configuration. Modern js app already requires many js config (gulp.js, package.js, config.js, etc...) so if the http server could work without another config file for basic settings it would be great.
http-server-fallback use a -f flag (for fallback, but makes a redirect and not a rewrite, which makes it useless for spa)
The text was updated successfully, but these errors were encountered:
Most of SPA which use html5 pushstate need a url rewrite when user directly access to an url which is not a file but a route (ex : refresh on /customers/1) and superstatic is great for that. I guess
{ "rewrites": [ {"source":"/**","destination":"/index.html"} ] }
in superstatic.json is very common (index.html or default.html or whatever).It would be great to have a command line argument for that, something like :
superstatic -ra index.html (ra for "rewrite all").
then the superstatic.json could be removed or used only for advanced configuration. Modern js app already requires many js config (gulp.js, package.js, config.js, etc...) so if the http server could work without another config file for basic settings it would be great.
http-server-fallback use a -f flag (for fallback, but makes a redirect and not a rewrite, which makes it useless for spa)
The text was updated successfully, but these errors were encountered: