-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
129 lines (108 loc) · 2.66 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
129
[build]
command = "npm run build"
publish = "dist"
ignore = "git log -1 --pretty=%B | grep test:"
[dev]
command = "npm run dev"
publish = "dist"
[[redirects]]
from = "/proxy/cloudinary/*"
to = "https://res.cloudinary.com/wolstenh/:splat"
status = 200
[[redirects]]
from = "/proxy/jsdelivr/*"
to = "https://cdn.jsdelivr.net/:splat"
status = 200
[[redirects]]
from = "/proxy/gstatic/*"
to = "https://t2.gstatic.com/:splat"
status = 200
[[redirects]]
from = "/api/recently-played"
to = "https://eoh55mp2n2usj4p.m.pipedream.net"
status = 200
[[redirects]]
from = "/api/recently-played-spotify"
to = "https://eoh55mp2n2usj4p.m.pipedream.net"
status = 200
# Proxy Lambda functions
[[redirects]]
from = "/api/*"
to = "/.netlify/functions-internal/:splat"
status = 200
[[redirects]]
from = "https://cranky-mcnulty-01683e.netlify.app/*"
to = "https://wolstenhol.me/:splat"
status = 301
force = true
[[redirects]]
from = "https://wolstenhol.me/no-js"
to = "https://wolstenhol.me/?no-js"
status = 301
force = true
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
[[headers]]
for = "/assets/*"
[headers.values]
Cache-Control = '''
public,
max-age=31536000,
immutable'''
[[headers]]
for = "/favicon/*"
[headers.values]
Cache-Control = '''
public,
max-age=31536000,
immutable'''
[[headers]]
for = "/partial-*.html"
[headers.values]
X-Robots-Tag = "noindex"
[[headers]]
for = "/*.webmanifest"
[headers.values]
Content-Type = "application/manifest+json"
[[headers]]
for = "/"
[headers.values]
Cache-Control = "public, max-age=60"
CDN-Cache-Control = "max-age=86400"
[[plugins]]
package = "netlify-plugin-image-optim"
[[plugins]]
package = "netlify-plugin-subfont"
[[plugins]]
package = "netlify-plugin-inline-critical-css"
[plugins.inputs]
dimensions = [
{ width = 640, height = 1136 },
{ width = 768, height = 1280 },
{ width = 1024, height = 600 },
{ width = 1280, height = 800 },
{ width = 1536, height = 2048 }
]
[[plugins]]
package = "netlify-plugin-cache"
[plugins.inputs]
paths = [".cache", "node_modules/.vite", "node_modules/.cache"]
[[edge_functions]]
path = "/api/fake-edge-messages-endpoint"
function = "fake-edge-messages-endpoint"
[[edge_functions]]
path = "/examples/example-banner"
function = "example-banner"
[[edge_functions]]
path = "/*"
function = "remove-js"
[[headers]]
for = "/examples/example-banner"
[headers.values]
X-Robots-Tag = "noindex"
[[edge_functions]]
path = "/*"
function = "strip-non-html-headers"