-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathnetlify.toml
More file actions
47 lines (38 loc) · 992 Bytes
/
netlify.toml
File metadata and controls
47 lines (38 loc) · 992 Bytes
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
[build]
publish = "./public/"
command = "hugo -D -F -d public"
[build.environment]
HUGO_VERSION = "0.148.2"
NODE_VERSION = "24.5.0"
# https://docs.netlify.com/routing/headers/#syntax-for-the-netlify-configuration-file
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
Content-Security-Policy = "frame-ancestors 'none'"
# https://docs.netlify.com/routing/redirects/#syntax-for-the-netlify-configuration-file
[[redirects]]
from = "/docs/memory-safety"
to = "https://www.memorysafety.org/docs/memory-safety"
status = 301
force = false
[[redirects]]
from = "/divviup"
to = "https://divviup.org"
status = 301
force = false
[[redirects]]
from = "/*"
to = "/404.html"
status = 404
force = false
[[redirects]]
from = "https://isrg.org/*"
to = "https://abetterinternet.org/:splat"
status = 302
force = true
[[redirects]]
from = "https://www.isrg.org/*"
to = "https://abetterinternet.org/:splat"
status = 302
force = true