-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
67 lines (55 loc) · 1.27 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
[dev]
command = "bin/bridgetown dev"
targetPort = 4000
port = 8888
publish = "output"
autoLaunch = true
framework = "#custom"
[context.dev.build.environment]
NODE_ENV = "development"
BRIDGETOWN_ENV = "development"
[build]
command = "bin/bridgetown deploy"
publish = "output"
[build.environment]
NODE_ENV = "development"
BRIDGETOWN_ENV = "production"
[build.processing.html]
pretty_urls = true
[[headers]]
for = "*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
X-Content-Type-Options = "nosniff"
Strict-Transport-Security = "max-age=15552000; includeSubDomains"
Referrer-Policy = "no-referrer-when-downgrade"
Cache-Control = "public, max-age=604800, s-max-age=604800"
[[headers]]
for = "/*.(png|jpg|js|css|svg|woff|ttf|eot|ico|woff2)"
[headers.values]
Cache-Control = "public, max-age=31536000, s-max-age=31536000"
[[redirects]]
from = "/p"
to = "/posts"
status = 200
[[redirects]]
from = "/t"
to = "/tags"
status = 200
[[redirects]]
from = "/b"
to = "/books"
status = 200
[[redirects]]
from = "/w"
to = "/weeknotes"
status = 200
[[redirects]]
from = "/writing/*"
to = "/p/:splat"
status = 301
[[redirects]]
from = "/books/*"
to = "/b/:splat"
status = 301