-
Notifications
You must be signed in to change notification settings - Fork 2
/
netlify.toml
executable file
Β·72 lines (62 loc) Β· 1.75 KB
/
netlify.toml
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
[Settings]
[build]
base = ""
publish = "dist/"
command = "yarn build-postbuild"
environment = { YARN_FLAGS = "--pure-lockfile" }
# Production context
[context.production]
publish = "dist/"
# Deploy Preview context: all deploys resulting from a pull/merge request
[context.deploy-preview]
publish = "dist/"
# Redirects and headers are GLOBAL for all builds β they do not get scoped to
# contexts no matter where you define them in the file.
# For context-specific rules, use _headers or _redirects files, which are
# PER-DEPLOY.
[[redirects]]
from = "https://foodwithbenjamin.com/*"
to = "https://begrant.io/:splat"
status = 301
force = true
[[redirects]]
from = "https://benjaminhollway.com/*"
to = "https://begrant.io/:splat"
status = 301
force = true
[[redirects]]
from = "https://b.nothingrandom.studio/*"
to = "https://begrant.io/:splat"
status = 301
force = true
[[redirects]]
from = "https://nothingrandom.netlify.com/*"
to = "https://begrant.io/:splat"
status = 301
force = true
[[redirects]]
from = "/cv"
to = "/resume/"
status = 301
force = false
# 404s
[[redirects]]
from = "*"
to = "/404"
status = 404
[[headers]]
# Define which paths this specific [[headers]] block will cover.
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
Content-Security-Policy = "frame-ancestors https://www.facebook.com"
# Multi-key header rules are expressed with multi-line strings.
cache-control = '''
max-age=0,
no-cache,
no-store,
must-revalidate'''
# Basic-Auth allows you to password protect your whole site.
# This feature may not be available on all plans.
# Basic-Auth = "someuser:somepassword anotheruser:anotherpassword"