-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetlify.toml
More file actions
143 lines (119 loc) · 2.88 KB
/
netlify.toml
File metadata and controls
143 lines (119 loc) · 2.88 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
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
[build]
publish = "static"
command = ""
# Redirect the legacy résumé subdomain to the default founding résumé
[[redirects]]
from = "https://cv.zqsdev.com/*"
to = "https://founding.zqsdev.com/:splat"
status = 301
force = true
# Shared classic CV assets served same-origin on each résumé subdomain
[[redirects]]
from = "https://founding.zqsdev.com/classic.css"
to = "/cv/classic.css"
status = 200
force = true
[[redirects]]
from = "https://founding.zqsdev.com/classic-viewer.js"
to = "/cv/classic-viewer.js"
status = 200
force = true
[[redirects]]
from = "https://devops.zqsdev.com/classic.css"
to = "/cv/classic.css"
status = 200
force = true
[[redirects]]
from = "https://devops.zqsdev.com/classic-viewer.js"
to = "/cv/classic-viewer.js"
status = 200
force = true
[[redirects]]
from = "https://software.zqsdev.com/classic.css"
to = "/cv/classic.css"
status = 200
force = true
[[redirects]]
from = "https://software.zqsdev.com/classic-viewer.js"
to = "/cv/classic-viewer.js"
status = 200
force = true
# Serve each targeted résumé viewer from its dedicated subdomain
[[redirects]]
from = "https://founding.zqsdev.com/*"
to = "/cv/founding/:splat"
status = 200
force = true
[[redirects]]
from = "https://devops.zqsdev.com/*"
to = "/cv/devops/:splat"
status = 200
force = true
[[redirects]]
from = "https://software.zqsdev.com/*"
to = "/cv/software/:splat"
status = 200
force = true
# Calendly keeps its vanity subdomain but points to the external scheduler
[[redirects]]
from = "https://calendly.zqsdev.com/*"
to = "https://calendly.com/alexandre-zqsdev/30min"
status = 301
force = true
# Convenience redirect for the /calendly path on the main site
[[redirects]]
from = "/calendly"
to = "https://calendly.com/alexandre-zqsdev/30min"
status = 301
force = true
# Proxy API requests to the self-hosted Axum backend
[[redirects]]
from = "/api/*"
to = "https://api.zqsdev.com/api/:splat"
status = 200
force = true
# Catch-all so the SPA stays routable on zqsdev.com / www.zqsdev.com
[[redirects]]
from = "/*"
to = "static/index.html"
status = 200
[[headers]]
for = "/*.webp"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "/*.png"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "/*.svg"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "/*.ico"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "/index.html"
[headers.values]
Cache-Control = "no-store"
[[headers]]
for = "/*.css"
[headers.values]
Cache-Control = "no-store"
[[headers]]
for = "/*.pdf"
[headers.values]
Cache-Control = "no-store"
[[headers]]
for = "/pkg/*.js"
[headers.values]
Cache-Control = "no-store"
[[headers]]
for = "/pkg/*.wasm"
[headers.values]
Cache-Control = "no-store"
[[headers]]
for = "/data/*.json"
[headers.values]
Cache-Control = "no-store"