template-fastapi-react
template-fastapi-react copied to clipboard
fix/404 on all react-router paths
Fixes a bug where routes defined only in the SPA (react-router etc.) returns 404.
nginx must return index.html for all files not found (assets, chunks, etc.)
Does this also fix the frontend tests?
Which tests are failing?
Does this also fix the frontend tests?
Which tests are failing?
hmm, hard to make out the actual error. But I see a "ERR_NETWORK" in there, so probably not related. Also, this change only affect build static js serving from prod version of NGINX.
@soofstad Is this ready to merge?