docs: redirect /guide to /guide/getting-started (#4276)

pull/4278/head
Divyansh Singh 2 months ago committed by GitHub
parent 0db71aec83
commit 39236c5899
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,6 +0,0 @@
/assets/*
cache-control: max-age=31536000
cache-control: immutable
/_translations/*
x-robots-tag: noindex

@ -1 +0,0 @@
https://vitepress.vuejs.org/* https://vitepress.dev/:splat 301!

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

Loading…
Cancel
Save