devforth / spa-to-http

Lightweight zero-configuration SPA HTTP server. Serves SPA bundle on HTTP port so it plays well with Traefik out of the box. Compatible with Vue.js, React and Angular
MIT License
110 stars 8 forks source link

_redirect Support #1

Open nhalstead opened 2 years ago

nhalstead commented 2 years ago

Looking to see about support for the _redirect file that Netlify supports.

I think this would be a good feature that would allow for matched features without digging deep into configs or placing Nginx in front of this server to do redirects.

https://docs.netlify.com/routing/redirects/

https://docs.netlify.com/routing/redirects/redirect-options/

Key features of the redirect format:

ivictbor commented 2 years ago

Thanks, added to our Roadmap!

ivictbor commented 2 years ago

Probably this package could be reused https://github.com/tj/go-redirects