-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnetlify.toml
More file actions
52 lines (41 loc) · 1.15 KB
/
netlify.toml
File metadata and controls
52 lines (41 loc) · 1.15 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
# Netlify Configuration for TUF Metadata Visualizer
# This file provides explicit deployment settings for Netlify
[build]
# Build command
command = "npm run build"
# Directory to publish (Next.js output)
publish = ".next"
[build.environment]
# Node.js version
NODE_VERSION = "18"
# Next.js specific settings
NEXT_TELEMETRY_DISABLED = "1"
# Production deployment settings
[context.production]
command = "npm run build"
# Preview deployments (for pull requests)
[context.deploy-preview]
command = "npm run build"
# Branch deployments
[context.branch-deploy]
command = "npm run build"
# Redirect rules (if needed in future)
# [[redirects]]
# from = "/api/*"
# to = "/.netlify/functions/:splat"
# status = 200
# Headers for security
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
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"
# Next.js Plugin (auto-detected, but explicit for clarity)
[[plugins]]
package = "@netlify/plugin-nextjs"