Last active
June 17, 2023 06:51
-
-
Save priyankarpal/4127f6012905b6cdccb0a58016463fe0 to your computer and use it in GitHub Desktop.
404 error in react application when we refresh(vercel deployment)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"rewrites": [ | |
{ | |
"source": "/(.*)", | |
"destination": "/" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Create a file called
vercel.json
to the root folder in your react application & paste the code