Skip to content

Commit 25931f7

Browse files
authored
fix: add URL fixes to vercel.json (#15)
* fix: add cleanUrls option to vercel.json Signed-off-by: Aviv Keller <[email protected]> * fixup! Signed-off-by: Aviv Keller <[email protected]> * fixup! Signed-off-by: Aviv Keller <[email protected]> * fixup! Signed-off-by: Aviv Keller <[email protected]> --------- Signed-off-by: Aviv Keller <[email protected]>
1 parent 5908a6d commit 25931f7

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

vercel.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11
{
22
"$schema": "https://openapi.vercel.sh/vercel.json",
3-
"outputDirectory": "out"
3+
"outputDirectory": "out",
4+
"cleanUrls": true,
5+
"redirects": [
6+
{
7+
"source": "/",
8+
"destination": "/learn/",
9+
"permanent": true
10+
},
11+
{
12+
"source": "/learn",
13+
"destination": "/learn/",
14+
"permanent": true
15+
},
16+
{
17+
"source": "/learn/(.*)/",
18+
"destination": "/learn/$1",
19+
"permanent": true
20+
}
21+
]
422
}

0 commit comments

Comments
 (0)