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
Hi @zomh. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
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.
<@240974567730970625> kapa.ai is still learning and improving, please let us how it did by reacting below
passive-yellow•2y ago
![No description](https://cdn.answeroverflow.com/1093567084895682660/image.png)
Hey @zomh ,
Can this question help you: https://stackoverflow.com/questions/64815012/why-does-react-router-not-works-at-vercel?
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
passive-yellow•2y ago
thanks i didnt know that
yes that worked @Omer 🫶