Skip to content

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

Open
MastanSayyad wants to merge 1 commit into
abhay-raj19:mainfrom
MastanSayyad:main
Open

Fixed 🐞 "404 Routing Navigation Errors" For The Pages#427
MastanSayyad wants to merge 1 commit into
abhay-raj19:mainfrom
MastanSayyad:main

Conversation

@MastanSayyad

@MastanSayyad MastanSayyad commented Jun 15, 2024

Copy link
Copy Markdown
Contributor

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 <sayyadmastan78@gmail.com>
@vercel

vercel Bot commented Jun 15, 2024

Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
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