---
title: "Discussion on \"Refreshing a page on Vercel or Netlify gives a 404? Your single-page app needs a rewrite\" | Hashnode"
description: "Discussion on \"Refreshing a page on Vercel or Netlify gives a 404? Your single-page app needs a rewrite\". Serve index.html for app routes, keep a real not-found screen"
url: "https://hashnode.com/posts/spa-404-on-refresh-after-deploy-fix/6af200ec3bb56a980ff22463"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Refreshing a page on Vercel or Netlify gives a 404? Your single-page app needs a rewrite](https://stacksmesh.hashnode.dev/spa-404-on-refresh-after-deploy-fix?utm_source=hashnode&utm_medium=feed)

Serve index.html for app routes, keep a real not-found screen

17h ago · 3 min read · stacksmesh.hashnode.dev  
Read the article

-   [#webdev](https://hashnode.com/tag/webdev)
-   [#react](https://hashnode.com/tag/react)
-   [#vite](https://hashnode.com/tag/vite)
-   [#vercel](https://hashnode.com/tag/vercel)

## Written by

[Ahmed Hassan Yaseen](https://hashnode.com/@ahmedhassanyaseen)

@ahmedhassanyaseen

  
[View profile](https://hashnode.com/@ahmedhassanyaseen)

Founder of StacksMesh. I make AI-built apps production-ready.

Founder and CEO of StacksMesh (stacksmesh.com). We fix, launch and migrate apps built with Base44, Lovable, Bolt and Replit, with a fixed price in writing before any work. I write about making AI-built apps safe and production-ready.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
