Skip to content

Instantly share code, notes, and snippets.

@priyankarpal
Last active June 17, 2023 06:51
Show Gist options
  • Save priyankarpal/4127f6012905b6cdccb0a58016463fe0 to your computer and use it in GitHub Desktop.
Save priyankarpal/4127f6012905b6cdccb0a58016463fe0 to your computer and use it in GitHub Desktop.
404 error in react application when we refresh(vercel deployment)
{
"rewrites": [
{
"source": "/(.*)",
"destination": "/"
}
]
}
@priyankarpal
Copy link
Author

Create a file called vercel.json to the root folder in your react application & paste the code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment