-
Notifications
You must be signed in to change notification settings - Fork 14
/
netlify.toml
128 lines (103 loc) · 2.46 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
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
[dev]
command = "yarn start"
targetPort = 39019
[build]
base = ""
command = "yarn build:prod"
publish = "public"
[build.environment]
IMGPROXY_URL = "/imgproxy"
HUGO_VERSION = "0.135.0"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"
NODE_ENV = "production"
NODE_VERSION = "20"
GO_IMPORT_PATH = "github.com/spotlightpa/poor-richard"
GO111MODULE = "on"
TZ = "America/New_York"
[context.deploy-preview]
command = "yarn build:stage"
[context.deploy-preview.processing]
skip_processing = true
[context.branch-deploy]
command = "yarn build:stage"
[context.branch-deploy.processing]
skip_processing = true
[[headers]]
for = "/*"
[headers.values]
X-Content-Type-Options = "nosniff"
[[headers]]
for = "/*.css"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable" # 1 year
[[headers]]
for = "/*.gif"
[headers.values]
Cache-Control = "public, max-age=1209600" # 2 weeks
[[headers]]
for = "/*.ico"
[headers.values]
Cache-Control = "public, max-age=1209600" # 2 weeks
[[headers]]
for = "/*.jpeg"
[headers.values]
Cache-Control = "public, max-age=1209600" # 2 weeks
[[headers]]
for = "/*.jpg"
[headers.values]
Cache-Control = "public, max-age=1209600" # 2 weeks
[[headers]]
for = "/*.js"
[headers.values]
Cache-Control = "public, max-age=300" # 5 minutes
[[headers]]
for = "/*.json"
[headers.values]
Cache-Control = "public, max-age=300" # 5 minutes
[[headers]]
for = "/*.map"
[headers.values]
Cache-Control = "public, max-age=300" # 5 minutes
[[headers]]
for = "/*.pdf"
[headers.values]
Cache-Control = "public, max-age=1209600" # 2 weeks
[[headers]]
for = "/*.png"
[headers.values]
Cache-Control = "public, max-age=1209600" # 2 weeks
[[headers]]
for = "/*.svg"
[headers.values]
Cache-Control = "public, max-age=1209600" # 2 weeks
[[headers]]
for = "/*.txt"
[headers.values]
Cache-Control = "public, max-age=300" # 5 minutes
[[headers]]
for = "/*.webm"
[headers.values]
Cache-Control = "public, max-age=1209600" # 2 weeks
[[headers]]
for = "/*.woff"
[headers.values]
Access-Control-Allow-Origin = "*"
Cache-Control = "public, max-age=31536000, immutable" # 1 year
[[headers]]
for = "/*.woff2"
[headers.values]
Access-Control-Allow-Origin = "*"
Cache-Control = "public, max-age=31536000, immutable" # 1 year
[[headers]]
for = "/*.xml"
[headers.values]
Cache-Control = "public, max-age=300" # 5 minutes
[[headers]]
for = "/@src/*"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable" # 1 year
[[headers]]
for = "/admin/*"
[headers.values]
X-Frame-Options = "DENY"