Skip to content

Fix link check for main branch #210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion linkcheck-skip.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.*/_next/.*
https://authzed.com/zanizbar/.*
https://authzed.com/zanzibar/.*
https://pkg.go.dev/.*
https://pprof.me
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
https://support.authzed.com
18 changes: 0 additions & 18 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -60,22 +60,4 @@ export default withNextra({
);
return config;
},
async redirects() {
// Redirect production vercel hostnames to the /docs directory
return process.env.VERCEL_ENV === 'production'
? [
{
source: '/',
has: [
{
type: 'host',
value: '.*.vercel.app',
},
],
destination: '/docs',
permanent: false,
},
]
: [];
},
});
11 changes: 11 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,17 @@
],
"destination": "https://authzed.com/docs/:match*",
"permanent": true
},
{
"source": "/",
"has": [
{
"type": "host",
"value": ".*.vercel.app"
}
],
"destination": "/docs",
"permanent": false
}
]
}