What should I use to deploy a static web site with a node build step and that has complex redirect and rewrite rules to keep lots of old URLs working? Most options I look at don’t have redirect/rewrite as capable as nginx or apache.
Asking for foolip.org, but we also need something very similar for whatwg.org.
The simplest case that usually isn’t supported in docs is stripping a prefix by redirecting https://foolip.org/blog/anything to https://foolip.org/anything. Next is rewriting (without redirect) https://foolip.org/wiki/something to https://foolip.org/wiki/something.html.
The latter could be done with a storage bucket with the right headers configured to serve it as text/html, but doing it with a rewrite would be nice.
@foolip I believe Netlify can do all these things. See https://github.com/domenic/blog.domenic.me/blob/main/netlify.toml