Skip to content

Commit b876566

Browse files
committed
fix error 404 on prod
1 parent 5783aa2 commit b876566

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

vercel.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,10 @@
99
}
1010
}
1111
],
12-
"routes": [
12+
"rewrites": [
1313
{
14-
"src": "/assets/(.*)",
15-
"dest": "/assets/$1"
16-
},
17-
{
18-
"src": "/(.*\\.(png|jpg|jpeg|gif|svg|ico|webp|txt))",
19-
"dest": "/$1"
20-
},
21-
{
22-
"src": "/(.*)",
23-
"dest": "/index.html"
14+
"source": "/(.*)",
15+
"destination": "/index.html"
2416
}
2517
]
2618
}

0 commit comments

Comments
 (0)