I recently completed a project(cinemaxtv.vercel.app), which is a movie application. After deploying the application on Vercel, I noticed an unusual...
For further actions, you may consider blocking this person and/or reporting abuse
I don't know why my error still persists
What error are you getting?
my links arent working, like when i try to navigate to /about. only the navbar works
I meant, what is the content of the error message? Kindly send a screenshot of the error and your routing set up to help assist you better.
Its strange cause it works well in dev mode, i can navigate between links but it fails on prod mode
Since it works fine in dev mode, the issue must be linked to the deployment.
Did you deploy with vercel?
yes im using vercel
Did you try to set it up like i did on this article?
If you followed all the steps I outlined in the article judiciously, I believe the routing problem will be rectified.
yes I did, but it redirects all routes to the home page
For the fact that it works in Dev mode, the issue has to do with deployment. I had similar issue after implementing all the steps in my article and forgot to push changes to my GitHub repo. So you have to consider pushing your changes to your repo if you forgot to do that earlier.
...anyways, i'd implore you to create another json.vercel file, input the rewrites code snippet, restart your server and push changes to your repo. Let's see the outcome.
strange cause im getting same error like your post but its not working even with the vercel.json
If you use react-router it may happen because react-router redirects pages in the client-side itself if any reload happens it will send a request to the server side and if the request isn't handled it will persist. you may refer
to this here. I have the same issue. If someone knows kindly let me know.
Same error page not found
try adding and rebuild, module.exports = {
trailingSlash: true,
Thanks for this.
For flutter apps or Single page apps, the following helped me :
Thanks for this i was just running amock as a headless chicken as why it is not working. Thanks a ton.
This worked for me so thank you!
Awesome, thank you
Can I ask where you got the API for fetching movie details? I also want to build a similar application but having trouble finding the appropriate API
Error: If
rewrites
,redirects
,headers
,cleanUrls
ortrailingSlash
are used, thenroutes
cannot be present.works for me, thanks you <3
this resolved the problem, thanks bro 😀
It worked for me
Thank you!! its worked !
Dude, thank you, i got this problem right now and the vercel.json solution worked to me.
Thank you!
It worked well
It worked ! Thanks.
🙏
Thank you so much, that made it really easy to get it to work :)
I'm glad I could help @alvarnydev
Thank you!, I faced same problem. I fixed now
I am glad I could help @aasim782 🙏
Thank you, man. Your article just helped me fix the same issue.👍
Glad it helped @imiebogodson 🙏
Thanks a lot! was wondering why the child paths of my deployed app couldn't refresh. God bless
You are welcome @ebubeevan. I am glad to help.🤗
Thank You very much
Thank you it worked!
my error still there
Thank you for this, it fixed the issue with my deployment.
You helped me a lot man, thanks!
You are welcome @simaomeyrer .
Thank you Dude! God bless you!
I Fixed it.
You are welcome @dravidjones28 . I'm happy to help.
Thank you so much!
You are welcome. 👍
Would u plz help me?.....i can't even load my website on Google when I refresh it 5-6 times then it loads the website
Thanks Man 🙌
It worked for me and i appreciate your efforts.
Thanks!!! i've been struggling with this for a while 😅
Thank you a lot, I solved that problem in 3 sec and it works now!