Watch: Fix 404 errors when I refresh a page | Vovy

Watch Vovy do it on a Mac: "My app works but refreshing /dashboard gives a 404 on my live site, fix it". Add the rewrite rule your single-page app needs on Vercel or Netlify so every route loads instead of showing 404 on refresh.

"My app works but refreshing /dashboard gives a 404 on my live site, fix it"

Add the rewrite rule your single-page app needs on Vercel or Netlify so every route loads instead of showing 404 on refresh.

What happens in the video

  1. Reproduce the 404: Vovy opens a deep link like yoursite.com/dashboard directly and confirms the host returns 404: NOT_FOUND even though clicking there works.
  2. Explain why it happens: Apps made with Vite and React Router have one real page, index.html. A card shows how the host looks for a /dashboard file that doesn't exist.
  3. Add the rewrite rule: Vovy adds a rewrite in vercel.json that sends every path to index.html, or a _redirects file with /* /index.html 200 for Netlify.
  4. Deploy the fix: Vovy asks, pushes the change, and waits for the new deployment to finish.
  5. Test deep links: Vovy refreshes three or four routes on the live site and shows a pass table, including that real files like images still load.
Read the step-by-step guide