Skip to content

Commit

Permalink
Merge pull request #210 from authzed/fix-link-checker
Browse files Browse the repository at this point in the history
Fix link check for main branch
  • Loading branch information
samkim authored Mar 6, 2024
2 parents f532778 + 0b9bd05 commit cd36d6a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 19 deletions.
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
}
]
}

0 comments on commit cd36d6a

Please sign in to comment.