Session 7b: Fix pipeline - body parser, Redis queueing, poller visibility, auto-start
This commit is contained in:
@@ -15,9 +15,14 @@ function getSupabaseClient() {
|
||||
|
||||
function getSupabaseServiceClient() {
|
||||
if (!serviceClient) {
|
||||
// SUPABASE_SERVICE_ROLE_KEY is the canonical name across .env.example
|
||||
// and the Next.js side. The fallback to SUPABASE_SERVICE_KEY supports
|
||||
// any deployment still set with the legacy variable so the rename
|
||||
// doesn't take down a running instance — remove the fallback once all
|
||||
// Coolify envs are updated.
|
||||
serviceClient = createClient(
|
||||
process.env.SUPABASE_URL,
|
||||
process.env.SUPABASE_SERVICE_KEY
|
||||
process.env.SUPABASE_SERVICE_ROLE_KEY || process.env.SUPABASE_SERVICE_KEY
|
||||
);
|
||||
}
|
||||
return serviceClient;
|
||||
|
||||
Reference in New Issue
Block a user