vaguerent/website/redirects.js
Zach Shilton 97a6d689f7
website: reset redirects file (#12966)
* website: reset redirects file

* docs: add note on product prefix in redirects, with example
2022-10-24 15:46:26 -04:00

31 lines
1.0 KiB
JavaScript

/**
* Define your custom redirects within this file.
*
* See the README file in this directory for documentation. Please do not
* modify or delete existing redirects without first verifying internally.
*
* Vercel's redirect documentation:
* https://nextjs.org/docs/api-reference/next.config.js/redirects
*
* Relative paths with fragments (#) are not supported.
* For destinations with fragments, use an absolute URL.
*
* Playground for testing url pattern matching: https://npm.runkit.com/path-to-regexp
*
* Note that redirects defined in a product's redirects file are applied to
* the developer.hashicorp.com domain, which is where the documentation content
* is rendered. Redirect sources should be prefixed with the product slug
* to ensure they are scoped to the product's section. Any redirects that are
* not prefixed with a product slug will be ignored.
*/
module.exports = [
/*
Example redirect:
{
source: '/vagrant/docs/internal-docs/my-page',
destination: '/vagrant/docs/internals/my-page',
permanent: true,
},
*/
]