Vercel throws 404 page when reloading the page
https://client-workout-tracker.vercel.app/
If you go to any other url other than the root it will be 404
source code https://github.com/FatahChan/client-workout-tracker
GitHub
GitHub - FatahChan/client-workout-tracker
Contribute to FatahChan/client-workout-tracker development by creating an account on GitHub.
3 Replies
other-emerald•12mo ago
https://stackoverflow.com/questions/64815012/react-router-app-works-in-dev-but-not-after-vercel-deployment
this happens because, by default, vercel only directs traffic from
/
to your appfair-roseOP•12mo ago
Yeah, found the fix and it's documented on vercel
https://vercel.com/docs/frameworks/vite#using-vite-to-make-spas
Vite on Vercel
Learn how to use Vercel's features with Vite.
fair-roseOP•12mo ago
@ferretwithabéret Thank you!!