-
Notifications
You must be signed in to change notification settings - Fork 110
Expand file tree
/
Copy pathnetlify.toml
More file actions
36 lines (30 loc) · 1.1 KB
/
netlify.toml
File metadata and controls
36 lines (30 loc) · 1.1 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
[build]
# Increase the build timeout
command = "pnpm run build:docs && pnpm run build && pnpm run post:build"
publish = ".next"
[build.environment]
# Increase Node.js memory limit for the build
NODE_OPTIONS = "--max-old-space-size=4096"
# Set Netlify environment variable for OG image optimization
NETLIFY = "true"
# Long-lived caching for hashed Next.js assets (reduces repeat downloads on doc navigations).
[[headers]]
for = "/_next/static/*"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "SAMEORIGIN"
X-XSS-Protection = "1; mode=block"
X-Content-Type-Options = "nosniff"
Referrer-Policy = "strict-origin-when-cross-origin"
Permissions-Policy = "camera=(), microphone=(), geolocation=()"
[[plugins]]
package = "@netlify/plugin-nextjs"
# Increase function timeout for API routes and on-demand generation
[functions]
node_bundler = "esbuild"
# Increase timeout for serverless functions (for OG image generation)
[functions."docs-og/[...slug]"]
included_files = ["public/fonts/**"]