Skip to content

Commit 82f3c20

Browse files
committed
add netlify.toml
1 parent 5990508 commit 82f3c20

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

netlify.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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" }

0 commit comments

Comments
 (0)