Without this, Vercel serves a 404 for any client-side route accessed directly (e.g. /admin/login, /shop) since it has no server-side route matching those paths — only index.html exists as a static file. React Router then never gets a chance to handle the path client-side. Claude-Session: https://claude.ai/code/session_01NhxA4npAXAxmCDEJt6kxSH
6 lines
80 B
JSON
6 lines
80 B
JSON
{
|
|
"rewrites": [
|
|
{ "source": "/(.*)", "destination": "/index.html" }
|
|
]
|
|
}
|