-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
31 lines (26 loc) · 1.29 KB
/
Copy path.env.example
File metadata and controls
31 lines (26 loc) · 1.29 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
# ============================================================
# REQUIRED — Vite client vars (safe for client, prefix with VITE_)
# ============================================================
VITE_SUPABASE_URL=https://your-project.supabase.co
VITE_SUPABASE_ANON_KEY=your-anon-key
VITE_PRODUCTION_MODE=true
# ============================================================
# REQUIRED — Server-only (for API at /api/admin)
# Set these in Vercel dashboard → Environment Variables
# For local dev: also add to .env (file is gitignored)
# ============================================================
# Supabase service_role key (Project Settings → API → service_role secret)
SUPABASE_SERVICE_KEY=your-service-role-key-here
# Admin login credentials
ADMIN_USERNAME=admin@example.com
ADMIN_PASSWORD=your-admin-password
# JWT signing secret — set a fixed value so tokens survive cold starts
SUPABASE_JWT_SECRET=a-random-64-char-hex-secret
# Master key bypasses normal login (optional, for emergencies)
MASTER_KEY=your-master-key-here
# ECDSA P-256 private key for ES256 JWT signing (optional, falls back to HS256)
# Generate: openssl ecparam -genkey -name prime256v1 -noout -out ec-private.pem
# Note: multi-line PEM must be quoted
JWT_EC_PRIVATE_KEY="-----BEGIN EC PRIVATE KEY-----
...
-----END EC PRIVATE KEY-----"