-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathnetlify.toml
More file actions
30 lines (26 loc) · 800 Bytes
/
netlify.toml
File metadata and controls
30 lines (26 loc) · 800 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
[build]
# Directory to change to before starting a build
base = "frontend"
# Directory that contains the deploy-ready HTML files and assets generated by the build
publish = ".next"
# Default build command
command = "npm run build"
[build.environment]
# Set the Node.js version
NODE_VERSION = "18"
# Use Netlify's Next.js plugin for full SSR support
[[plugins]]
package = "@netlify/plugin-nextjs"
# Headers for security and performance
[[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 = "/_next/static/*"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"