Rewrites routers when deploy to vercel
1, src/routers/index.ts -> <BrowserRouter basename="/">
2, create file vercel.json in root:
{ "rewrites": [{ "source": "/(.*)", "destination": "/index.html" }]}
Thanks!
Last updated
1, src/routers/index.ts -> <BrowserRouter basename="/">
2, create file vercel.json in root:
{ "rewrites": [{ "source": "/(.*)", "destination": "/index.html" }]}
Thanks!
Last updated