Sometimes you need to serve the SPA from non root directory. For example let's say that I have a react app and I need to serve it on /portal, in my index html I will have paths like /portal/static/css/main.dce7bb36.chunk.css
Currently server is just returning index.html for those paths.
You should compile with PUBLIC_URL=/portal. That does the trick.
Any news on this ? This could be nice