noahflk
Nixpacks Staticfile provider configure NGINX for SPA
My project is a React Vite app with React Router. Railway gets just static file, built by my GitLab CI. They get recognized as the Nixpacks Staticfile type when I deploy them on Railway.
Now, how can I add an Nginx config that only adds SPA support. Meaning, all requests should be redirected to /index.html. This is the only configuration I want to do. Everything else should be handled automatically by Railway.
5 replies