-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
68 lines (56 loc) · 2.91 KB
/
Copy path.env.example
File metadata and controls
68 lines (56 loc) · 2.91 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
59
60
61
62
63
64
65
66
67
############################################################
# Frontend Environment (.env or .env.local) #
# Copy to .env.local and fill in real values (git ignored). #
############################################################
############################
# 1. Supabase Public Config #
############################
# Get these from: https://app.supabase.com/project/<project-ref>/settings/api
# DO NOT paste the service_role key here (keep that only as a server secret).
VITE_SUPABASE_URL=https://YOUR_PROJECT_REF.supabase.co
VITE_SUPABASE_ANON_KEY=YOUR_PUBLIC_ANON_KEY
# Storage bucket name (must exist in Supabase Storage). Default: uploads
VITE_SUPABASE_BUCKET=uploads
#########################################
# 2. Feature Flags / Optional Behaviors #
#########################################
# Public site base URL (used for canonical URLs and SEO)
VITE_SITE_URL=https://cftechlab.hcsarker.me
# Simulate service request storage locally if backend endpoint fails / offline.
VITE_SIMULATE_SERVICE_REQUESTS=true
# Enable notification calls from frontend to Edge Function.
VITE_NOTIFICATIONS_ENABLED=true
# If you host a separate backend API (Node / server folder / other origin), set base URL here.
# Leave blank to skip and use only Supabase + Edge Functions.
VITE_API_BASE=""
# (Optional) Admin token placeholder (NOT used yet). Keep blank or remove if unused.
VITE_ADMIN_TOKEN=""
########################################
# 3. Edge Function Secrets (NOT in git) #
########################################
# These are NOT placed in this file in production. Set via:
# supabase secrets set KEY=VALUE
# Listed here only for documentation.
# RESEND_API_KEY=xxxx
# NOTIFY_FROM=notifications@example.com
# NOTIFY_TO=owner@example.com,team@example.com
# SEND_USER_ACK=true # user also receives acknowledgement when email provided
# ACK_SUBJECT_PREFIX=Thanks for contacting CF TechLab
# BRAND_NAME=CF TechLab
#############################################
# 4. Notes / Guidance #
#############################################
# - After editing .env.local restart dev server (Vite reads at startup).
# - If VITE_NOTIFICATIONS_ENABLED=false frontend will silently skip sending events.
# - If Edge Function secrets missing, function returns 501 (Not configured).
# - RLS currently disabled (per project state) — re‑enable + add policies before production hardening.
# - Keep service_role key ONLY in server runtime or Edge Function secrets, never in this file.
#############################################
# 5. Quick Verification Checklist #
#############################################
# [ ] VITE_SUPABASE_URL points to https://<ref>.supabase.co
# [ ] VITE_SUPABASE_ANON_KEY matches dashboard anon key
# [ ] Supabase bucket 'uploads' exists (or change variable)
# [ ] supabase secrets set RESEND_API_KEY / NOTIFY_* done
# [ ] Function deployed: supabase functions deploy notify
# [ ] curl test 200 OK