Skip to content

Commit 8628916

Browse files
committed
Build(docs): Leave the domain redirects to the Vercel project
www.navrouter.dev, nav-router.dev and www.nav-router.dev redirect to navrouter.dev (308) as project domains, so vercel.json no longer repeats them.
1 parent 38d0a2d commit 8628916

1 file changed

Lines changed: 21 additions & 24 deletions

File tree

‎docs/vercel.json‎

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,36 @@
44
"buildCommand": "npm run build",
55
"outputDirectory": "dist",
66
"trailingSlash": true,
7-
"git": { "deploymentEnabled": false },
8-
"redirects": [
9-
{
10-
"source": "/:path*",
11-
"has": [{ "type": "host", "value": "nav-router.dev" }],
12-
"destination": "https://navrouter.dev/:path*",
13-
"permanent": true
14-
},
15-
{
16-
"source": "/:path*",
17-
"has": [{ "type": "host", "value": "www.nav-router.dev" }],
18-
"destination": "https://navrouter.dev/:path*",
19-
"permanent": true
20-
},
21-
{
22-
"source": "/:path*",
23-
"has": [{ "type": "host", "value": "www.navrouter.dev" }],
24-
"destination": "https://navrouter.dev/:path*",
25-
"permanent": true
26-
}
27-
],
7+
"git": {
8+
"deploymentEnabled": false
9+
},
2810
"headers": [
2911
{
3012
"source": "/_astro/(.*)",
31-
"headers": [{ "key": "Cache-Control", "value": "public, max-age=31536000, immutable" }]
13+
"headers": [
14+
{
15+
"key": "Cache-Control",
16+
"value": "public, max-age=31536000, immutable"
17+
}
18+
]
3219
},
3320
{
3421
"source": "/og/(.*)",
35-
"headers": [{ "key": "Cache-Control", "value": "public, max-age=86400" }]
22+
"headers": [
23+
{
24+
"key": "Cache-Control",
25+
"value": "public, max-age=86400"
26+
}
27+
]
3628
},
3729
{
3830
"source": "/pagefind/(.*)",
39-
"headers": [{ "key": "Cache-Control", "value": "public, max-age=300, must-revalidate" }]
31+
"headers": [
32+
{
33+
"key": "Cache-Control",
34+
"value": "public, max-age=300, must-revalidate"
35+
}
36+
]
4037
}
4138
]
4239
}

0 commit comments

Comments
 (0)