-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnetlify.toml
27 lines (22 loc) · 985 Bytes
/
netlify.toml
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
[build]
command = "export NODE_ENV=development && npm install && export NODE_ENV=production && npm run build"
[build.environment]
NEXT_TELEMETRY_DISABLED = "1"
NODE_VERSION = "20"
# Production context
[context.production]
environment = { NODE_ENV = "production" }
# Development context (deploys from git branches)
[context.branch-deploy]
environment = { NODE_ENV = "development" }
# Preview context (deploy previews from pull/merge requests)
[context.deploy-preview]
environment = { NODE_ENV = "development" }
# Environment variables
[template.environment]
DATABASE_URL = "Required: NeonDB owner role connection string"
DATABASE_AUTHENTICATED_URL = "Required: NeonDB authenticated role connection string"
STYTCH_PROJECT_ENV = "Required: Stytch project environment (test or live)"
STYTCH_PROJECT_ID = "Required: Your Stytch Project ID"
NEXT_PUBLIC_STYTCH_PUBLIC_TOKEN = "Required: Your Stytch Public Token"
STYTCH_SECRET = "Required: Your Stytch Secret Key"