-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetlify.toml
More file actions
23 lines (20 loc) · 1.06 KB
/
Copy pathnetlify.toml
File metadata and controls
23 lines (20 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Deploy: connect this GitHub repo under Netlify → Site configuration → Build & deploy
# → Continuous deployment → Link repository. Each push runs the build command below.
#
# Supabase NEXT_PUBLIC_* client keys are embedded in the browser bundle by design.
# If Netlify marks those variables as "Contains secret values", secret scanning will
# match the inlined JWT against build output and fail. Omit them from secret-value
# scanning, or in the UI uncheck "Contains secret values" for those keys only.
#
# AI_PROVIDER / *_MODEL are not secrets; if marked secret, scanning matches literals
# in src/lib/ai/providers/types.ts and fails the build.
# See: https://ntl.fyi/configure-secrets-scanning
[build]
command = "npm run build"
publish = ".next"
# Next.js SSR on Netlify: the plugin emits the correct publish/handler wiring.
[[plugins]]
package = "@netlify/plugin-nextjs"
[build.environment]
NODE_VERSION = "20"
SECRETS_SCAN_OMIT_KEYS = "NEXT_PUBLIC_SUPABASE_ANON_KEY,NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY,AI_PROVIDER,OPENAI_MODEL,ANTHROPIC_MODEL,GROQ_MODEL"