Skip to content

Commit

Permalink
docs: redirect /guide to /guide/getting-started (#4276)
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd authored Oct 12, 2024
1 parent 0db71ae commit 39236c5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
6 changes: 0 additions & 6 deletions docs/public/_headers

This file was deleted.

1 change: 0 additions & 1 deletion docs/public/_redirects

This file was deleted.

21 changes: 21 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,24 @@
[build]
publish = "docs/.vitepress/dist"
command = "pnpm docs:build && pnpm docs:lunaria:build"

[[headers]]
for = "/assets/*"
[headers.values]
cache-control = '''
max-age=31536000,
immutable'''

[[headers]]
for = "/_translations/*"
[headers.values]
x-robots-tag = "noindex"

[[redirects]]
from = "https://vitepress.vuejs.org/*"
to = "https://vitepress.dev/:splat"
force = true

[[redirects]]
from = "/guide/"
to = "/guide/getting-started"

0 comments on commit 39236c5

Please sign in to comment.