FitBody icon indicating copy to clipboard operation
FitBody copied to clipboard

Bug 🐞: "Routing Navigation Errors" For The Pages

Open MastanSayyad opened this issue 8 months ago • 2 comments

Hey, as I have developed the legal pages

image

I was just checking my work After deployment and I found that The navigations to the pages don't work, after clicking it shows the following error

image

It shows a 404 page.

#Solution 1:

  • First, we will try by minor changing the path for the pages.

#Solution 2:

After deploying the changed path if the error occurs again then based on my knowledge it only happens if you don't configure your vercel.json The routes don't get recognized except the "/" Home page routes. we have to:

  • Add a vercel.json file to the project.
  • add these lines { "rewrites": [{ "source": "/(.*)", "destination": "/" }] }
  • On the vercel deployment dashboard ensure we pick vitejs as a framework

@abhay-raj19 pls assign this issue to me under gssoc24.

MastanSayyad avatar May 30 '24 12:05 MastanSayyad