-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
55 lines (47 loc) · 2.05 KB
/
Copy path.env.example
File metadata and controls
55 lines (47 loc) · 2.05 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Web app (apps/web)
# Supabase: Project Settings → Database → URI (use "Transaction" pooler for serverless / Vercel).
# Example pooler: postgresql://postgres.[ref]:[password]@aws-0-[region].pooler.supabase.com:6543/postgres
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/flowchart_dev
# Dev/testing only: set MOCK_DB=true to run without Postgres. Never set this in production.
MOCK_DB=
AUTH_SECRET=generate-with-openssl-rand-base64-32
# Local development uses mock auth by default. Set MOCK_AUTH=false to test real Supabase auth locally.
MOCK_AUTH=
# Dev: leave unset so Auth.js uses the request Host (works on any port, e.g. 3004).
# Production / Vercel: set to your public origin, e.g. AUTH_URL=https://your-app.vercel.app
# NEXTAUTH_URL=http://localhost:3000
# OAuth (configure at least one for production)
AUTH_GITHUB_ID=
AUTH_GITHUB_SECRET=
AUTH_GOOGLE_ID=
AUTH_GOOGLE_SECRET=
AUTH_APPLE_ID=
AUTH_APPLE_SECRET=
# Comma-separated admin emails (match on sign-in; optional role bump)
ADMIN_EMAILS=
# Stripe (optional)
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=
STRIPE_PRICE_PRO=
STRIPE_PRICE_PRO_MONTHLY=
STRIPE_PRICE_PRO_ANNUAL=
STRIPE_ENABLED=false
# Supabase (required for production auth and DB)
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_ANON_KEY=
# Freeform canvas multiplayer (y-webrtc) signaling servers, comma-separated wss:// URLs.
# Leave unset: production auto-uses same-origin wss://<host>/api/yjs-signaling,
# local dev falls back to BroadcastChannel-only sync (same-origin tabs).
NEXT_PUBLIC_YJS_SIGNALING=
# Hosted AI (required for generation; free tier uses credits, Pro is unlimited)
OPENAI_API_KEY=
OPENAI_BASE_URL=
OPENAI_MODEL=gpt-4o-mini
GOOGLE_GENERATIVE_AI_API_KEY=
GOOGLE_MODEL=gemini-flash-latest
# Optional AI gateway/proxy key forwarded as Bearer token to OPENAI_BASE_URL
# (e.g. Portkey, OpenRouter, or an internal gateway). Leave unset if not used.
AI_GATEWAY_KEY=
# Safety overrides — only set these if you truly need mock auth/DB in production (not recommended)
# ALLOW_MOCK_AUTH_IN_PRODUCTION=true
# ALLOW_MOCK_DB_IN_PRODUCTION=true