-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
53 lines (49 loc) · 1.68 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
[build]
publish = "_site"
[context.production]
command = """
curl -fsSL https://deno.land/x/install/install.sh | sh && \
/opt/buildhome/.deno/bin/deno task build && \
tree . > _site/jac_tree.txt
"""
[context.deploy-preview]
command = """
curl -fsSL https://deno.land/x/install/install.sh | sh && \
/opt/buildhome/.deno/bin/deno task build && \
tree . > _site/jac_tree.txt && \
cp headers-dev _site/_headers
"""
[context.branch-deploy]
command = """
curl -fsSL https://deno.land/x/install/install.sh | sh && \
/opt/buildhome/.deno/bin/deno task build && \
tree . > _site/jac_tree.txt
cp headers-dev _site/_headers
"""
[[headers]]
for = "/*"
[headers.values]
Content-Security-Policy = "upgrade-insecure-requests; block-all-mixed-content;"
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
X-Content-Type-Options = "nosniff"
X-Powered-By = "Lume mixed with Blood Sweat and Tears"
X-Custom-Header = "Rawr eSolia Tokyo"
Referrer-Policy = "strict-origin-when-cross-origin"
Strict-Transport-Security = "max-age=31536000; includeSubDomains; preload"
Permissions-Policy = "autoplay=(), camera=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), publickey-credentials-get=()"
[[redirects]]
from = "/en/*"
to = "/en/404.html"
status = 404
[[redirects]]
from = "/*"
to = "/404.html"
status = 404
# [[redirects]]
# # Requests to URLs matching this pattern...
# from = "/media/:file"
# # ...will resolve to this URL pattern
# to = "/.netlify/images?url=/media/:file"
# # ... and the status code of 200 will make this behave as a rewrite
# status = 200