> For the complete documentation index, see [llms.txt](https://nghiaxchis.gitbook.io/chisfis-react-template/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nghiaxchis.gitbook.io/chisfis-react-template/how-to/rewrites-routers-when-deploy-to-vercel.md).

# Rewrites routers when deploy to vercel

1, **src/routers/index.ts** ->  <**BrowserRouter** basename="/">&#x20;

2, create file **vercel.json** in root:\
`{  "rewrites": [{ "source": "/(.*)", "destination": "/index.html" }]}`

Thanks!
