DokployD
Dokploy9mo ago
4 replies
Daniel

404 Not Found when refreshing SPA React Vite app

Hi, guys.
I just deployed my Vite React app following the docs from the website (https://docs.dokploy.com/docs/core/vite-react). It worked fine but when i refresh or tried to access to a route of the SPA app it will throw 404 Not Found as shown in the image.

I know that i need to do a redirect but i'm not sure where exactly and what i need to put.

I'm using self-hosted Dokploy inside a VPS.
image.png
Dokploy is a open source alternative to Heroku, Vercel, and Netlify.
Welcome to Dokploy | Dokploy
Was this page helpful?