Netlify: refreshing any route except / of a React SPA gives 'Page not found'
@devsingh05▲ 13 net votes
The server has no file for /dashboard; the client router only works after index.html loads. Add a file named _redirects to the published folder (public/ for Vite and CRA) containing /* /index.html 200, or the equivalent [[redirects]] block in netlify.toml with status = 200. Next.js on Netlify uses its runtime instead and does not need this.