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

Vercel rewrite inteferes with react router. #11296

Open
gajraj-gan opened this issue Mar 19, 2024 · 0 comments
Open

Vercel rewrite inteferes with react router. #11296

gajraj-gan opened this issue Mar 19, 2024 · 0 comments

Comments

@gajraj-gan
Copy link

I have added a vercel rewrite to rewrite urls for our docs to external website.

{
      "source": "/docs/:slug*",
      "destination": "https://docs.something.com/:slug*"
    }

But this is intefering with react router v6, we have router as <Route path="*" element={<404/ >} />, the route instead goes to this and shows the 404 element. Can someone help with this?

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

No branches or pull requests

1 participant