diff --git a/docs/public/_headers b/docs/public/_headers deleted file mode 100644 index 5d2850dd..00000000 --- a/docs/public/_headers +++ /dev/null @@ -1,6 +0,0 @@ -/assets/* - cache-control: max-age=31536000 - cache-control: immutable - -/_translations/* - x-robots-tag: noindex diff --git a/docs/public/_redirects b/docs/public/_redirects deleted file mode 100644 index 45c59465..00000000 --- a/docs/public/_redirects +++ /dev/null @@ -1 +0,0 @@ -https://vitepress.vuejs.org/* https://vitepress.dev/:splat 301! diff --git a/netlify.toml b/netlify.toml index 801b84fc..c90c283b 100644 --- a/netlify.toml +++ b/netlify.toml @@ -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"