-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
43 lines (37 loc) · 1.15 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
[build.environment]
NODE_VERSION = "20.14.0"
[build]
publish = "dist"
command = "pnpm run prod"
functions = "functions"
[dev]
autoLaunch = true
framework = "astro"
command = "pnpm run dev"
targetPort = 4321
functions = "functions"
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
[[headers]]
for = "/*"
[headers.values]
X-Clacks-Overhead = "GNU Terry Pratchett"
X-Frame-Options = "SAMEORIGIN"
X-XSS-Protection = "1; mode=block"
Content-Security-Policy = ""
Referrer-Policy = "strict-origin-when-cross-origin"
Strict-Transport-Security = "max-age=31536000; includeSubDomains; preload"
Accept-CH = "Downlink,RTT,Device-Memory,Save-Data,DPR,Width"
Permissions-Policy = "autoplay=(), camera=(), geolocation=(), microphone=(), midi=(), usb=()"
[[headers]]
for = "*.css" # Ensure this matches your CSS path
[headers.values]
Content-Type = "text/css" # Ensures the correct MIME type for CSS files
Cache-Control = "max-age=604800, must-revalidate, public"
[[headers]]
for = "*.js"
[headers.values]
Content-Type = "text/javascript"
Cache-Control = "max-age=604800, must-revalidate, public"