other-emerald
other-emerald•16mo ago

Deployment to Vercel 404 not found when pasting URL

Maybe one of you ran into the same issue i am clueless on this one. I deployed my refine project for the first time to Vercel 🎆 . Everything is working fine. When i use the Navigation via the Sidebar or any Link everything is working fine. However when i copy paste a URL into the browser e.g. https://finanzplaner-frontend-refine-mui.vercel.app/revenues vercel gives me a 404 not found error. Again if i click on revenues via Link it works fine. If i build the project and run vite preview locally everything works so it's only on Vercel. Any help appreciated. "@refinedev/react-router-v6": "^4.1.0",
6 Replies
kapa.ai
kapa.ai•16mo ago
Hi @zomh. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
kapa.ai
kapa.ai•16mo ago
---------------------- Hmm, I don't know enough to give you a confident answer yet. However, you can check the refine documentation for more information on handling routing and deployment: - React Router v6 documentation (https://refine.dev/docs/packages/documentation/routers/react-router-v6) - Deployment guide (https://refine.dev/docs/tutorial/getting-started/deploy-project) ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
React Router v6 | refine
refine provides router bindings and utilities for React Router v6. It is built on top of the react-router-dom package. This package will provide easy integration between refine and react-router-dom for both existing projects and new projects.
6. Deploying your app to the web | refine
To make your app accessible to the public, you can use a hosting service to build and deploy your site live on the web. In this tutorial, we will use Netlify, but you are welcome to choose your preferred hosting service.
kapa.ai
kapa.ai•16mo ago
<@240974567730970625> kapa.ai is still learning and improving, please let us how it did by reacting below
other-emerald
other-emerald•16mo ago
No description
Omer
Omer•16mo ago
Stack Overflow
Why does react-router not works at vercel?
I am trying to publish a serverless web to vercel. I want to use react-router and this works good on my computer but when I deploy it It doesn't works Can somebody help me? (I want to do it without
other-emerald
other-emerald•16mo ago
thanks i didnt know that yes that worked @Omer 🫶