-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
37 lines (30 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
[build]
publish = "dist"
[build.environment]
NODE_VERSION = "20.18.0"
NPM_VERSION = "10.8.2"
[context.production]
command = "bun run build"
[context.deploy-preview]
command = "bun run build"
[context.branch-deploy]
command = "bun run build"
[context.next]
command = "bun run build"
# Redirects and rewrites — https://docs.netlify.com/routing/redirects/#syntax-for-the-netlify-configuration-file
# Custom headers — https://docs.netlify.com/routing/headers/#syntax-for-the-netlify-configuration-file
[[headers]]
for = "/*"
[headers.values]
Strict-Transport-Security = "max-age=31536000; includeSubDomains; preload"
X-Content-Type-Options = "nosniff"
X-XSS-Protection = "1; mode=block"
# Content-Security-Policy = "default-src 'self'; manifest-src 'self'; connect-src 'self'; font-src 'self'; img-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'"
X-Frame-Options = "SAMEORIGIN"
Referrer-Policy = "strict-origin"
Permissions-Policy = "geolocation=(self), microphone=(), camera=()"
Cache-Control= '''
public,
max-age=31536000,
immutable'''
Access-Control-Allow-Origin = "*"