-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
30 lines (26 loc) · 1.89 KB
/
Copy path.env.example
File metadata and controls
30 lines (26 loc) · 1.89 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
# ─────────────────────────────────────────────────────────────
# Spellhand — Environment variables
# Copy this file to `.env.local` and fill in values for local dev.
# `.env.local` is gitignored and never committed.
# ─────────────────────────────────────────────────────────────
# ─── Supabase (Phase 2+) ──────────────────────────────────────
# From your Supabase project → Settings → API.
# Either key naming works:
# - legacy: `anon` / `service_role`
# - new: `sb_publishable_xxx` / `sb_secret_xxx`
NEXT_PUBLIC_SUPABASE_URL=https://your-project-ref.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbGc...
# Server-only — used for admin operations (Phase 3+). Never expose.
# Skip the NEXT_PUBLIC_ prefix.
SUPABASE_SERVICE_ROLE_KEY=eyJhbGc...
# ─── Public site URL ──────────────────────────────────────────
# Used by auth flows (email redirect) and certificate share links.
# In production, set this to the deployed origin.
NEXT_PUBLIC_SITE_URL=http://localhost:3000
# ─── In Supabase dashboard ────────────────────────────────────
# 1. Project Settings → Auth → URL Configuration:
# Site URL = NEXT_PUBLIC_SITE_URL value
# Additional Redirect = http://localhost:3000/auth/callback
# <deployed-origin>/auth/callback
# 2. SQL Editor → run `supabase/migrations/0001_initial.sql`
# 3. (Optional) Auth → Email Templates → customise the magic link email