Repository navigation
Expand file tree
/
Copy pathnetlify.toml
More file actions
86 lines (72 loc) · 1.63 KB
/
Copy pathnetlify.toml
File metadata and controls
86 lines (72 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[build]
base = "./"
publish = "./packages/docs/dist"
command = "pnpm -w run build:only"
[build.environment]
NODE_VERSION = "22"
[[redirects]]
from = "/DESIGN.md"
to = "/DESIGN.md"
status = 200
force = true
[[redirects]]
from = "/DESIGN.html"
to = "/DESIGN.html"
status = 200
force = true
[[redirects]]
from = "/agent-install.md"
to = "/agent-install.md"
status = 200
force = true
[[redirects]]
from = "/agent-usage.md"
to = "/agent-usage.md"
status = 200
force = true
# vite-ssg writes one flat `*.html` per route, so `/guide/introduction` needs the
# extension appended before the catch-all below gets a chance to answer.
[[redirects]]
from = "/guide/:slug"
to = "/guide/:slug.html"
status = 200
[[redirects]]
from = "/components/:slug"
to = "/components/:slug.html"
status = 200
[[redirects]]
from = "/composables/:slug"
to = "/composables/:slug.html"
status = 200
# The markdown sources an agent reads instead of the rendered page live at the same path.
[[redirects]]
from = "/guide/:slug.md"
to = "/guide/:slug.md"
status = 200
force = true
[[redirects]]
from = "/components/:slug.md"
to = "/components/:slug.md"
status = 200
force = true
[[redirects]]
from = "/composables/:slug.md"
to = "/composables/:slug.md"
status = 200
force = true
[[redirects]]
from = "/llm.txt"
to = "/llms.txt"
status = 301
force = true
[[redirects]]
from = "/*"
to = "/404.html"
status = 404
# Keep the default Netlify subdomain alive as a permanent redirect so the links already
# indexed under it hand their ranking over instead of returning nothing.
[[redirects]]
from = "https://pxd-ui.netlify.app/*"
to = "https://pxd.libondev.cn/:splat"
status = 301
force = true