-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnetlify.toml
More file actions
35 lines (30 loc) · 718 Bytes
/
netlify.toml
File metadata and controls
35 lines (30 loc) · 718 Bytes
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
[build]
publish = "dist"
command = "npm run build"
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-Content-Type-Options = "nosniff"
Referrer-Policy = "strict-origin-when-cross-origin"
Permissions-Policy = "camera=(), microphone=(), geolocation=()"
[[redirects]]
from = "/api/wallhaven/*"
to = "https://wallhaven.cc/:splat"
status = 200
force = true
[[redirects]]
from = "/proxy/thumb/*"
to = "https://th.wallhaven.cc/:splat"
status = 200
force = true
[[redirects]]
from = "/proxy/image/*"
to = "https://w.wallhaven.cc/:splat"
status = 200
force = true
# SPA fallback - must be last
[[redirects]]
from = "/*"
to = "/index.html"
status = 200