-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathnetlify.toml
More file actions
106 lines (105 loc) · 2.16 KB
/
netlify.toml
File metadata and controls
106 lines (105 loc) · 2.16 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
[build]
# https://docs.netlify.com/build/configure-builds/manage-dependencies/#node-js-and-javascript
# Node version set in .nvmrc
# JS dependencies must be listed in package.json
command = "npm run build"
publish = "dist/"
# Redirect rules
# Splat redirect from /docs/<lang>/ to /en
# For example /docs/fr/overview to /en/overview
# As en is currently the only locale
[[redirects]]
from = "/docs/es-ES/:slug"
to = "/en/:slug"
status = 302
[[redirects]]
from = "/docs/fr/:slug"
to = "/en/:slug"
status = 302
[[redirects]]
from = "/docs/ko/:slug"
to = "/en/:slug"
status = 302
[[redirects]]
from = "/docs/pt-BR/:slug"
to = "/en/:slug"
status = 302
[[redirects]]
from = "/docs/zh-CN/:slug"
to = "/en/:slug"
status = 302
[[redirects]]
from = "/docs/id/:slug"
to = "/en/:slug"
status = 302
[[redirects]]
from = "/docs/de/:slug"
to = "/en/:slug"
status = 302
[[redirects]]
from = "/docs/pl/:slug"
to = "/en/:slug"
status = 302
[[redirects]]
from = "/docs/ru/:slug"
to = "/en/:slug"
status = 302
[[redirects]]
from = "/docs/ja/:slug"
to = "/en/:slug"
status = 302
[[redirects]]
from = "/docs/nl/:slug"
to = "/en/:slug"
status = 302
[[redirects]]
from = "/docs/ro/:slug"
to = "/en/:slug"
status = 302
[[redirects]]
from = "/docs/in/:slug"
to = "/en/:slug"
status = 302
[[redirects]]
from = "/docs/hi/:slug"
to = "/en/:slug"
status = 302
# Splat redirect from /docs/ to /
# Previously the site was severed at allcontributors.org/docs/
[[redirects]]
from = "/docs/*"
to = "/:splat"
status = 302
# Redirects to /en/ from old addresses at /
[[redirects]]
from = "/overview"
to = "/en/overview"
status = 301
[[redirects]]
from = "/specification"
to = "/en/specification"
status = 301
[[redirects]]
from = "/emoji-key"
to = "/en/emoji-key"
status = 301
[[redirects]]
from = "/usage-tips"
to = "/en/usage-tips"
status = 301
[[redirects]]
from = "/tooling"
to = "/en/tooling"
status = 301
[[redirects]]
from = "/bot/*"
to = "/en/bot/:splat"
status = 301
[[redirects]]
from = "/cli/*"
to = "/en/cli/:splat"
status = 301
[[redirects]]
from = "/project/*"
to = "/en/project/:splat"
status = 301