Skip to content

Commit 1a92d3d

Browse files
committed
add guide and example routes
1 parent 027d9ae commit 1a92d3d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

vercel.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,24 @@
1010
}
1111
],
1212
"rewrites": [
13+
{
14+
"source": "/guides",
15+
"destination": "/index.html"
16+
},
1317
{
1418
"source": "/guides/:path*",
1519
"destination": "/index.html"
1620
},
21+
{
22+
"source": "/examples",
23+
"destination": "/index.html"
24+
},
1725
{
1826
"source": "/examples/:path*",
1927
"destination": "/index.html"
2028
},
2129
{
22-
"source": "/((?!api|_next/static|_next/image|assets|favicon.ico|sw.js).*)",
30+
"source": "/((?!assets|favicon.ico|logo.svg|static|node_modules|api/|.*\\.(css|js|png|jpg|jpeg|gif|svg|ico|webp|txt)).*)",
2331
"destination": "/index.html"
2432
}
2533
]

0 commit comments

Comments
 (0)