Commit cfffc50
Add Vercel SPA routing config to fix 404 on direct navigation
Vercel returns 404 when navigating directly to routes like /run/:slug
because it looks for a matching file on disk. This rewrite rule tells
Vercel to serve index.html for all routes, letting React Router handle
client-side routing. Equivalent to the existing Netlify _redirects file.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 7468b30 commit cfffc50
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments