documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Chore/doc 150/remove vercel redirects

Open fmonper1 opened this issue 2 years ago • 3 comments

Currently we handle redirection in two ways.

  1. The vercel config
  2. Meta refresh pages generated during build time

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

fmonper1 avatar May 15 '23 14:05 fmonper1

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
documentation ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 3, 2023 9:34pm

vercel[bot] avatar May 15 '23 14:05 vercel[bot]

@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.

dwightjl avatar Jul 29 '23 20:07 dwightjl