Reactjs refresh problem after deploying in vercel, link not working problem | Codewithease

Опубликовано: 15 Май 2026
на канале: Code with ease
482
6

There is a problem with reactjs, if you use react router dom you will face an issue where your page will throw 404 error on any link other than / so i will show you the fix .

Just add this vercel.json file in your root directory and you are good to go .
vercel.json
{
"rewrites": [
{ "source": "/(.*)", "destination": "/" }
]
}


Connect with me :
github : https://github.com/arundada9000
Wallpaper Link : https://image2url.com/images/17622347...

Like and subscribe.
My mic is so bad donate me a mic please haha.

🌐 Connect with Me
📧 Email: [email protected]

🎥 YouTube:    / @arundada9000  

📸 Instagram:   / arundada9000  

📘 Facebook:   / arundada9000  

💻 GitHub: https://github.com/arundada9000

#arundada9000 #arunneupane #frontend #programming #codewithease #reactjs #reloadingproblem #routingproblem