-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetlify.toml
More file actions
33 lines (28 loc) · 770 Bytes
/
netlify.toml
File metadata and controls
33 lines (28 loc) · 770 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
[build]
command = "bun install && bun run build"
publish = "dist"
[build.environment]
BUN_VERSION = "1.3.4"
NODE_ENV = "production"
# Long-cache hashed bundler output
[[headers]]
for = "/chunk-*"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
# PDF served inline so the iframe preview works
[[headers]]
for = "/cv.pdf"
[headers.values]
Content-Type = "application/pdf"
Content-Disposition = "inline; filename=cv.pdf"
Cache-Control = "public, max-age=3600"
# Allow PDF.js (and the iframe) to render same-origin
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "SAMEORIGIN"
# SPA fallback (won't override static files that exist)
[[redirects]]
from = "/*"
to = "/index.html"
status = 200