Public website powered by the same Supabase project as spadmin and sppod2.
- Copy environment variables from
spadmin/.env.local:
cp ../spadmin/.env.local .env.localRequired keys:
NEXT_PUBLIC_SUPABASE_URLNEXT_PUBLIC_SUPABASE_ANON_KEY
Optional (later):
NEXT_PUBLIC_PAYSTACK_PUBLIC_KEY— for inline Paystack on/give
- Install and run:
npm install
npm run devOpen http://localhost:3000.
| Section | Supabase table |
|---|---|
| Home — latest message | episodes |
| Watch / messages / series | episodes, series |
| Devotionals | devotionals |
| News | announcements |
Playback uses the same audio URLs as the mobile app (Supabase sermon-audio bucket or legacy Google Drive fileId in parts JSON).
- Gallery, events, testimonies, bible study, column, newsletter, faith Q&A, give funds
- These pages keep v0 mock content until tables + spadmin CRUD are added
lib/data/— server-side Supabase fetcherslib/mappers.ts— DB rows → UI typeslib/playback-utils.ts— audio URL resolutioncomponents/playback-provider.tsx— web audio player state
Manage content in spadmin (npm run dev in ../spadmin). Changes appear on the website after revalidation (~60s) or refresh.