-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetlify.toml
More file actions
65 lines (53 loc) · 1.46 KB
/
netlify.toml
File metadata and controls
65 lines (53 loc) · 1.46 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
[build]
command = "npm run build"
publish = ".next"
[build.environment]
NODE_VERSION = "22"
NPM_VERSION = "10"
NEXT_TELEMETRY_DISABLED = "1"
NODE_ENV = "production"
# Enable Next.js Image Optimization on Netlify
NEXT_PUBLIC_NETLIFY = "true"
[functions]
node_bundler = "esbuild"
[functions."*"]
timeout = 15
[[plugins]]
package = "@netlify/plugin-nextjs"
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
X-Content-Type-Options = "nosniff"
Referrer-Policy = "strict-origin-when-cross-origin"
[[headers]]
for = "/images/*"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "/_next/static/*"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "/_next/static/chunks/*.css"
[headers.values]
Content-Type = "text/css"
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "/_next/static/css/*.css"
[headers.values]
Content-Type = "text/css"
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "/*.css"
[headers.values]
Content-Type = "text/css"
[[headers]]
for = "/_next/image*"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "/*.woff2"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"