Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
563e5e3d
Unverified
Commit
563e5e3d
authored
2 years ago
by
Zach Shilton
Committed by
GitHub
2 years ago
Browse files
Options
Download
Email Patches
Plain Diff
docs: add details to redirects file (#15020)
parent
a0071f42
Branches unavailable
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
website/redirects.js
+25
-0
website/redirects.js
with
25 additions
and
0 deletions
+25
-0
website/redirects.js
+
25
-
0
View file @
563e5e3d
/**
* Define your custom redirects within this file.
*
* 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: '/nomad/docs/internal-docs/my-page',
destination: '/nomad/docs/internals/my-page',
permanent: true,
},
*/
// Rename and re-arrange Autoscaling Internals section
{
source
:
'
/nomad/tools/autoscaling/internals/:path*
'
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help