Skip to content

Commit 7c29c9e

Browse files
author
yurim
committed
fix: move fallback option to back, add subpath support
1 parent 1b2ef01 commit 7c29c9e

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

vercel.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,29 @@
77
}
88
],
99
"rewrites": [
10+
{
11+
"source": "/code-quality/:path*",
12+
"destination": "/dist/fundamentals/code-quality/:path*"
13+
},
1014
{
1115
"source": "/fundamentals/code-quality/:path*",
1216
"destination": "/dist/fundamentals/code-quality/:path*"
1317
},
18+
1419
{
1520
"source": "/fundamentals/bundling/:path*",
1621
"destination": "/dist/fundamentals/bundling/:path*"
1722
},
23+
1824
{
19-
"source": "/fundamentals/today-i-learned/:path*",
20-
"destination": "/dist/fundamentals/today-i-learned/:path*"
21-
},
22-
{
23-
"source": "/code-quality/:path*",
24-
"destination": "/dist/fundamentals/code-quality/:path*"
25+
"source": "/today-i-learned/:path*",
26+
"destination": "/dist/fundamentals/today-i-learned/index.html"
2527
},
2628
{
27-
"source": "/today-i-learned/:path*",
28-
"destination": "/today-i-learned/index.html"
29+
"source": "/fundamentals/today-i-learned/:path*",
30+
"destination": "/dist/fundamentals/today-i-learned/:path*"
2931
},
32+
3033
{ "source": "/(.*)", "destination": "/" }
3134
]
3235
}

0 commit comments

Comments
 (0)