By default, React doesn't follow HTTP and HTML standards for URLs - it has a proprietary system that requires hijacking 404s, always serving index.html, and then presenting Not Found errors on the client-side instead.
We need to add an example of how to do this with Caddy to the Cheat Sheet: https://github.com/webinstall/webi-installers/tree/main/caddy
Note: we need to make sure that special routes /api/, /assets/, /js/, etc are still handled correctly - probably a "try first, then" / waterfall type of system.
For example:
handle /api/* => always reverse_proxy, or fail with 404handle /assets/ => try root /srv/www{path}, or fail with 404handle /* => try root /srv/www{path}, or serve index.html (NEVER 404)