mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
.
This commit is contained in:
45
packages/web/.env.example
Normal file
45
packages/web/.env.example
Normal file
@@ -0,0 +1,45 @@
|
||||
# Neon PostgreSQL (https://console.neon.tech)
|
||||
# Format: postgresql://<user>:<password>@<host>/<database>?sslmode=require
|
||||
DATABASE_URL=postgresql://user:password@ep-xxx.region.aws.neon.tech/neondb?sslmode=require
|
||||
ELECTRIC_URL=http://localhost:3100
|
||||
BETTER_AUTH_SECRET=your-strong-secret-at-least-32-chars
|
||||
APP_BASE_URL=http://localhost:5000
|
||||
|
||||
# Optional: Electric Cloud credentials (for production)
|
||||
ELECTRIC_SOURCE_ID=
|
||||
ELECTRIC_SOURCE_SECRET=
|
||||
|
||||
# Optional: OpenRouter for AI chat responses (https://openrouter.ai/keys)
|
||||
OPENROUTER_API_KEY=
|
||||
OPENROUTER_MODEL=google/gemini-2.0-flash-001
|
||||
|
||||
# Optional: Flowglad billing (enable billing UI + metering)
|
||||
FLOWGLAD_SECRET_KEY=
|
||||
VITE_FLOWGLAD_ENABLED=false
|
||||
|
||||
# Optional: Resend for production email OTP (https://resend.com/api-keys)
|
||||
# In dev mode, OTP codes are logged to terminal instead
|
||||
RESEND_API_KEY=
|
||||
RESEND_FROM_EMAIL=noreply@yourdomain.com
|
||||
|
||||
# Optional: Gemini for canvas image generation
|
||||
GEMINI_API_KEY=
|
||||
|
||||
# ===========================================
|
||||
# PRODUCTION DEPLOYMENT (Cloudflare Workers)
|
||||
# ===========================================
|
||||
# Neon PostgreSQL DATABASE_URL format:
|
||||
# postgresql://<user>:<password>@<endpoint>.neon.tech/<database>?sslmode=require
|
||||
#
|
||||
# Set these as secrets in Cloudflare:
|
||||
# wrangler secret put DATABASE_URL
|
||||
# wrangler secret put BETTER_AUTH_SECRET
|
||||
# wrangler secret put ELECTRIC_URL
|
||||
# wrangler secret put ELECTRIC_SOURCE_ID
|
||||
# wrangler secret put ELECTRIC_SOURCE_SECRET
|
||||
# wrangler secret put OPENROUTER_API_KEY
|
||||
# wrangler secret put RESEND_API_KEY
|
||||
#
|
||||
# Or set APP_BASE_URL/RESEND_FROM_EMAIL as variables:
|
||||
# wrangler vars set APP_BASE_URL https://your-domain.com
|
||||
# wrangler vars set RESEND_FROM_EMAIL noreply@your-domain.com
|
||||
Reference in New Issue
Block a user