-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
58 lines (47 loc) · 1.82 KB
/
.env.example
File metadata and controls
58 lines (47 loc) · 1.82 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
56
57
58
# ===========================================
# Commons by Codezela — Environment Variables
# ===========================================
# Copy this file to .env.local and fill in your values:
# cp .env.example .env.local
# ---- App ----
NEXT_PUBLIC_APP_URL=http://localhost:3000
SEED_ADMIN_EMAIL=info@codezela.com
SEED_ADMIN_PASSWORD=
SEED_ROUTE_SECRET=
# ---- Better Auth ----
BETTER_AUTH_SECRET= # openssl rand -base64 32
BETTER_AUTH_URL=http://localhost:3000
# ---- Database ----
# Set DB_PROVIDER to "local" or "supabase" to switch targets.
# The matching DATABASE_URL will be used automatically.
DB_PROVIDER=local
# Local PostgreSQL (used when DB_PROVIDER=local)
DATABASE_URL_LOCAL=postgresql://postgres:postgres@localhost:5432/commons
# Supabase PostgreSQL direct host (IPv6-only in some networks)
DATABASE_URL_SUPABASE=postgresql://postgres:<password>@db.<project-ref>.supabase.co:5432/postgres
# Supabase pooler (recommended for Vercel and IPv4-only networks)
DATABASE_URL_SUPABASE_POOLER=postgresql://postgres.<project-ref>:<password>@aws-0-<region>.pooler.supabase.com:6543/postgres
# Supabase client (optional, only if you use Supabase JS client APIs)
NEXT_PUBLIC_SUPABASE_URL=https://<project-ref>.supabase.co
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=
# ---- Google OAuth ----
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
# ---- GitHub OAuth ----
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
# ---- Cloudflare R2 ----
R2_ACCOUNT_ID=
R2_ACCESS_KEY_ID=
R2_SECRET_ACCESS_KEY=
R2_BUCKET_NAME=commons-uploads
# Required for public image rendering: set custom domain or R2 public development URL
R2_PUBLIC_URL=
# ---- Brevo Email (Transactional) ----
# Required in production for password reset emails:
BREVO_API_KEY=
BREVO_SENDER_EMAIL=
# Optional:
BREVO_SENDER_NAME=Commons by Codezela Technologies
BREVO_REPLY_TO_EMAIL=
BREVO_REPLY_TO_NAME=