-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathnetlify.toml
More file actions
73 lines (61 loc) · 1.53 KB
/
Copy pathnetlify.toml
File metadata and controls
73 lines (61 loc) · 1.53 KB
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
[build]
publish = "site-public"
command = "npm run site:build"
# Root → showcase(200 プロキシ: Slack 等の OGP クローラーがリダイレクトを追わない問題を回避)
[[redirects]]
from = "/"
to = "/docs/index.html"
status = 200
# Pretty URLs for docs
[[redirects]]
from = "/docs"
to = "/docs/index.html"
status = 200
[[redirects]]
from = "/docs/icons"
to = "/docs/icons.html"
status = 200
[[redirects]]
from = "/icons"
to = "/docs/icons.html"
status = 200
# OGP image / favicon
[[redirects]]
from = "/og-image.png"
to = "/docs/og-image.png"
status = 200
[[redirects]]
from = "/Meltan_favicon.svg"
to = "/docs/Meltan_favicon.svg"
status = 200
# ルート 200 プロキシ時の相対パス解決
[[redirects]]
from = "/Meltan.svg"
to = "/docs/Meltan.svg"
status = 200
# Cache static assets
[[headers]]
for = "/scripts/*"
[headers.values]
Cache-Control = "public, max-age=3600, s-maxage=86400"
[[headers]]
for = "/assets/*"
[headers.values]
Cache-Control = "public, max-age=86400, s-maxage=604800"
[[headers]]
for = "/docs/Meltan.svg"
[headers.values]
Cache-Control = "public, max-age=86400"
# OGP 画像はクローラーに制限なしで配信
[[headers]]
for = "/og-image.png"
[headers.values]
X-Frame-Options = "ALLOWALL"
Cache-Control = "public, max-age=86400"
# Security headers
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-Content-Type-Options = "nosniff"
Referrer-Policy = "strict-origin-when-cross-origin"