-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetlify.toml
More file actions
31 lines (26 loc) · 799 Bytes
/
netlify.toml
File metadata and controls
31 lines (26 loc) · 799 Bytes
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
[build]
command = "npm run build"
publish = "out"
[build.environment]
NODE_VERSION = "20.10.0"
# Ensure no server-side rendering is attempted
NEXT_TELEMETRY_DISABLED = "1"
# Example of where you'd set your API key (don't include actual secrets here)
# MY_API_KEY = "your-api-key-would-go-here"
# Remove the NextJS plugin since we're using static export
# [[plugins]]
# package = "@netlify/plugin-nextjs"
# Remove functions section since we're using static export
# [functions]
# included_files = [".next/server/**"]
# node_bundler = "esbuild"
# Add redirects for SPA navigation
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
# Add redirects for API routes to Netlify Functions
[[redirects]]
from = "/api/*"
to = "/.netlify/functions/:splat"
status = 200