File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Netlify Configuration File
2+
3+ [build ]
4+ # The command to build your Docusaurus site
5+ command = " npm run build"
6+
7+ # The directory that contains the deploy-ready static files
8+ publish = " build"
9+
10+ [build .environment ]
11+ # Sets the Node.js version to 22 (LTS as of early 2026)
12+ # This ensures the build environment matches your local setup
13+ NODE_VERSION = " 22"
14+
15+ # Optional: Increase memory if your docs grow very large
16+ # NODE_OPTIONS = "--max-old-space-size=4096"
17+
18+ [[headers ]]
19+ # Define caching rules for static assets to improve performance
20+ for = " /assets/*"
21+ [headers .values ]
22+ Cache-Control = " public, max-age=31536000, immutable"
23+
24+ [context .production ]
25+ # Optimization for production builds
26+ environment = { NODE_ENV = " production" }
You can’t perform that action at this time.
0 commit comments