-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
netlify.toml
78 lines (64 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
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
[dev]
framework = "astro"
targetPort = 4321
autoLaunch = false
[[redirects]]
from = "/rss.xml"
to = "/feed.xml"
status = 301
# Annoyingly, there's only an "include" directive
# and not any form of "exclude" directive for functions
[[edge_functions]]
path = "/"
function = "theme"
[[edge_functions]]
path = "/blog/*"
function = "theme"
[[edge_functions]]
path = "/labs/*"
function = "theme"
[[edge_functions]]
path = "/about/*"
function = "theme"
[[edge_functions]]
path = "/resume/*"
function = "theme"
[[edge_functions]]
path = "/api/theme/*"
function = "set-theme"
[[headers]]
for = "/*"
[headers.values]
accept-ch = "sec-ch-prefers-color-scheme"
link = "<https://paularmstrong.dev/>; rel=preconnect"
permissions-policy = "ch-prefers-color-scheme=(\"https://paularmstrong.dev\")"
x-frame-options = "SAMEORIGIN"
x-content-type-options = "nosniff"
referrer-policy = "same-origin"
cross-origin-resource-policy = "same-origin"
cross-origin-embedder-policy = "unsafe-none"
cross-origin-opener-policy = "same-origin"
[[headers]]
for="/assets/*"
[headers.values]
cache-control = "public,max-age=365000000,immutable"
[[headers]]
for="/img/*"
[headers.values]
cache-control = "public,max-age=365000000,immutable"
[[headers]]
for="/ob/*"
[headers.values]
cache-control = "public,max-age=365000000,immutable"
[[headers]]
for="/*.js"
[headers.values]
cache-control = "public,max-age=365000000,immutable"
[[headers]]
for="/*.css"
[headers.values]
cache-control = "public,max-age=365000000,immutable"
[[headers]]
for="/*.json"
[headers.values]
cache-control = "public,max-age=365000000,immutable"