Skip to content

Commit cd36d6a

Browse files
authored
Merge pull request #210 from authzed/fix-link-checker
Fix link check for main branch
2 parents f532778 + 0b9bd05 commit cd36d6a

File tree

3 files changed

+13
-19
lines changed

3 files changed

+13
-19
lines changed

linkcheck-skip.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.*/_next/.*
2-
https://authzed.com/zanizbar/.*
2+
https://authzed.com/zanzibar/.*
33
https://pkg.go.dev/.*
44
https://pprof.me
55
https://www.researchgate.net/profile/Carrie-Gates-2/publication/240787391_Access_Control_Requirements_for_Web_20_Security_and_Privacy/links/540e6f670cf2d8daaacd4adf/Access-Control-Requirements-for-Web-20-Security-and-Privacy.pdf
6+
https://support.authzed.com

next.config.mjs

-18
Original file line numberDiff line numberDiff line change
@@ -60,22 +60,4 @@ export default withNextra({
6060
);
6161
return config;
6262
},
63-
async redirects() {
64-
// Redirect production vercel hostnames to the /docs directory
65-
return process.env.VERCEL_ENV === 'production'
66-
? [
67-
{
68-
source: '/',
69-
has: [
70-
{
71-
type: 'host',
72-
value: '.*.vercel.app',
73-
},
74-
],
75-
destination: '/docs',
76-
permanent: false,
77-
},
78-
]
79-
: [];
80-
},
8163
});

vercel.json

+11
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,17 @@
6565
],
6666
"destination": "https://authzed.com/docs/:match*",
6767
"permanent": true
68+
},
69+
{
70+
"source": "/",
71+
"has": [
72+
{
73+
"type": "host",
74+
"value": ".*.vercel.app"
75+
}
76+
],
77+
"destination": "/docs",
78+
"permanent": false
6879
}
6980
]
7081
}

0 commit comments

Comments
 (0)