-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetlify.toml
More file actions
66 lines (53 loc) · 1.56 KB
/
netlify.toml
File metadata and controls
66 lines (53 loc) · 1.56 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
66
# StackDock - Root Netlify Configuration
# This configuration is for the DOCS app deployment only
# The marketing app is deployed on Cloudflare Pages (not Netlify)
[build]
# Build command for the docs app (from monorepo root)
command = "npm run build:docs"
# Directory to publish (Next.js output from docs app)
publish = "apps/docs/.next"
# Base directory - root for monorepo access
base = "."
[build.environment]
# Node.js version
NODE_VERSION = "20"
# NPM version
NPM_VERSION = "10"
# Next.js plugin for docs app
[[plugins]]
package = "@netlify/plugin-nextjs"
# Security headers
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-Content-Type-Options = "nosniff"
X-XSS-Protection = "1; mode=block"
Referrer-Policy = "strict-origin-when-cross-origin"
Permissions-Policy = "camera=(), microphone=(), geolocation=()"
# Cache static assets
[[headers]]
for = "/_next/static/*"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "/images/*"
[headers.values]
Cache-Control = "public, max-age=604800"
# Optional: Proxy to docs subdomain (if using subdomain approach)
# Uncomment these redirects if you want to proxy /docs/* to docs subdomain
# [[redirects]]
# from = "/docs/*"
# to = "https://docs.stackdock.com/:splat"
# status = 200
# force = true
# 404 page
[[redirects]]
from = "/*"
to = "/404"
status = 404
# Development context
[context.deploy-preview]
command = "npm run build:docs"
[context.branch-deploy]
command = "npm run build:docs"