-
Notifications
You must be signed in to change notification settings - Fork 395
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
Chore/doc 150/remove vercel redirects #1300
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -10,397 +10,5 @@ | |||
] | |||
} | |||
], | |||
"cleanUrls": true, | |||
"redirects": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these all duplicates with the Astro redirects? We might need to merge this list into the Astro redirects file and clean up duplicate entries.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, and we shouldn't be using vercel redirections at all with astro 2.0 https://vercel.com/docs/frameworks/astro#can-i-use-vercel.json-to-create-rewrites-with-astro
@fmonper1 Builds are working again after generating a fresh package-lock.json file but the new linkchecker is throwing errors. I'll take a look later and see if I can figure out why. |
Currently we handle redirection in two ways.
This PR removes the redirects from the vercel config so that there is a single source of truth for our redirects and also introduces middleware for handling redirections at the edge.
Middlewares allow us to keep track of the page referrer by extracting the
referer
header from the http request and appending it to the destination url.Test url: https://documentation-git-chore-doc-150remove-verc-960820-chainlinklabs.vercel.app/docs/chainlink-keepers/introduction