-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
54 lines (46 loc) · 3.05 KB
/
Copy path.env.example
File metadata and controls
54 lines (46 loc) · 3.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
# ── Database (Supabase) ──────────────────────────────────────────────
# Transaction pooler (Supavisor, port 6543) for runtime queries:
DATABASE_URL="postgresql://postgres.<project-ref>:<password>@aws-0-<region>.pooler.supabase.com:6543/postgres"
# Session/direct connection (port 5432) for Prisma CLI + migrations:
DIRECT_URL="postgresql://postgres.<project-ref>:<password>@aws-0-<region>.pooler.supabase.com:5432/postgres"
# ── Auth (BetterAuth) ────────────────────────────────────────────────
# Generate with: openssl rand -base64 32
BETTER_AUTH_SECRET=""
NEXT_PUBLIC_APP_URL="http://localhost:3000"
GOOGLE_CLIENT_ID=""
GOOGLE_CLIENT_SECRET=""
# ── Auth rate-limit shared storage (Upstash Redis, optional) ─────────
# Without these, better-auth rate limiting uses per-instance memory (dev OK).
# Create a free DB at upstash.com → REST API credentials.
UPSTASH_REDIS_REST_URL=""
UPSTASH_REDIS_REST_TOKEN=""
# ── Payments (Razorpay — test keys in dev) ───────────────────────────
RAZORPAY_KEY_ID=""
RAZORPAY_KEY_SECRET=""
RAZORPAY_WEBHOOK_SECRET=""
NEXT_PUBLIC_RAZORPAY_KEY_ID=""
# ── Fermion (video/DRM, live classes, code labs) ─────────────────────
FERMION_API_KEY=""
FERMION_WEBHOOK_SECRET=""
# FERMION_API_BASE_URL="" # override only if Fermion changes its API host
# ── Email (Resend) ───────────────────────────────────────────────────
RESEND_API_KEY=""
EMAIL_FROM="lms-web <onboarding@resend.dev>"
# ── Supabase Storage ─────────────────────────────────────────────────
NEXT_PUBLIC_SUPABASE_URL=""
NEXT_PUBLIC_SUPABASE_ANON_KEY=""
SUPABASE_SERVICE_ROLE_KEY=""
# ── Scheduled functions ──────────────────────────────────────────────
CRON_SECRET=""
# ── Observability (Sentry) ────────────────────────────────────────────
# All optional. Reporting is OFF locally by default: Sentry only sends from a
# real Netlify deploy context (production / deploy-preview / branch-deploy) —
# see src/lib/sentry-env.ts. Leaving the DSN set locally is therefore harmless,
# but it no longer has a hard-coded fallback either, so an unset DSN means "do
# not report" rather than "report into production".
# NEXT_PUBLIC_SENTRY_DSN=""
# SENTRY_TRACES_SAMPLE_RATE="0.1"
# Escape hatch: report from a laptop to deliberately exercise Sentry. Needs the
# DSN above set as well — force-enable only starts the SDK, which still cannot
# send anywhere without a DSN.
# NEXT_PUBLIC_SENTRY_FORCE_ENABLE="true"