Content Source Diagnostic

Shows which data source the admin app is reading from. No secret values are displayed on this page.

Active Modelive_supabase

QA_CONTENT_SOURCElive_supabase
DescriptionLive Supabase (server-side, read-only)

Server-side live Supabase read. No browser Supabase client is used. SUPABASE_SERVICE_ROLE_KEY never leaves the server.

Mode Availability

localAvailable
supabase_exportAvailable
live_supabaseEnv configuredactive

Live Supabase EnvironmentConfigured

SUPABASE_URLPresent
SUPABASE_SERVICE_ROLE_KEYPresent

Live Supabase env configured. Visit /system/supabase-live to test the live connection.

Supabase Export FilesAll present

active_package_from_supabase_v1.jsonPresent
student_resource_payload_from_supabase_v1.jsonPresent
teacher_resource_payload_from_supabase_v1.jsonPresent

Active Package (live_supabase)Loaded

content_keyphysics_0625
package_idcambridge_igcse_physics_0625_resource_package_v2
version2
statusactive
resource_count27
student_payload_count23
teacher_payload_count27
teacher_only_count4
How to switch modes
In apps/admin/.env.local:
# Local JSON (default — no Supabase required):
QA_CONTENT_SOURCE=local

# Supabase snapshot (run Gate 53F export script first):
QA_CONTENT_SOURCE=supabase_export

# Live Supabase read (requires SUPABASE_URL + SUPABASE_SERVICE_ROLE_KEY):
QA_CONTENT_SOURCE=live_supabase
Restart the dev server after changing this value.