Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed 🐞 "404 Routing Navigation Errors" For The Pages #427

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MastanSayyad
Copy link
Contributor

@MastanSayyad MastanSayyad commented Jun 15, 2024

Description

Fix Issue request in PR #307 Issue Closes #366

image

Hey @abhay-raj19 and @Ayushhgupta39 I have solved the 404 page not found error after deployment and build setup.

To rectify the {404 Not Found Error}, it is necessary to establish redirect and rewrite rules for the React Router application. These rules will assist the application preventing the "Page Not Found" error.

It was essential for this configurations bcoz the other pages will only work for short period after refreshing the page it will show 404 page not found error Except Home Page

That's why I created a vercel.json file in the root directory of the project. This file will enable Vercel to configure the routing accurately.

image

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have made this from my own
  • I have taken help from some online resourses
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • My changes generate no new warnings

Signed-off-by: Mastan Sayyad <[email protected]>
Copy link

vercel bot commented Jun 15, 2024

@MastanSayyad is attempting to deploy a commit to the abhayraj19's projects Team on Vercel.

A member of the Team first needs to authorize it.

@MastanSayyad
Copy link
Contributor Author

@Ayushhgupta39 Please merge this PR as it is essential for Pages Routing navigations without any error. also add the labels, Thank You!!

@MastanSayyad
Copy link
Contributor Author

@Ayushhgupta39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug 🐞: "Routing Navigation Errors" For The Pages
1 participant