-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnetlify.toml
More file actions
59 lines (49 loc) · 1.21 KB
/
netlify.toml
File metadata and controls
59 lines (49 loc) · 1.21 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
[build]
# Build command
command = "yarn build"
# Directory to publish (Next.js static export output)
publish = "out"
# Node.js version
[build.environment]
NODE_VERSION = "20"
NPM_FLAGS = "--version"
YARN_VERSION = "1.22.22"
# Redirect rules for Next.js routing
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
# Headers for better performance and security
[[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"
# Cache static assets
[[headers]]
for = "/static/*"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
# Cache images
[[headers]]
for = "*.png"
[headers.values]
Cache-Control = "public, max-age=31536000"
[[headers]]
for = "*.jpg"
[headers.values]
Cache-Control = "public, max-age=31536000"
[[headers]]
for = "*.jpeg"
[headers.values]
Cache-Control = "public, max-age=31536000"
[[headers]]
for = "*.webp"
[headers.values]
Cache-Control = "public, max-age=31536000"
[[headers]]
for = "*.ico"
[headers.values]
Cache-Control = "public, max-age=31536000"