Connect the app to Supabase Auth and run the consumption schema so dashboards and APIs resolve without schema errors.
In Vercel (and .env.local), set:
NEXT_PUBLIC_SUPABASE_URLNEXT_PUBLIC_SUPABASE_ANON_KEYsupabase/migrations/20260328120000_consumption.sql from the repository.usage_events, provider_connections, user_consumption_settingsauth.uid()public.get_consumption_dashboard() (no arguments)EXECUTE for role authenticatedselect public.get_consumption_dashboard();Run as an authenticated user in SQL is not the same as JWT; in the app, the RPC runs with the user's JWT. If the dashboard loads without “schema cache” errors, you are aligned.