From 0c242e0042447f3cdc7b7898808e7be4f8fe47e8 Mon Sep 17 00:00:00 2001 From: Ayyub I Date: Tue, 3 Oct 2023 13:37:42 -0500 Subject: [PATCH] fixed service key --- packages/web/app/api/v1/cards/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web/app/api/v1/cards/route.ts b/packages/web/app/api/v1/cards/route.ts index 037fc41c..ad3b97f1 100644 --- a/packages/web/app/api/v1/cards/route.ts +++ b/packages/web/app/api/v1/cards/route.ts @@ -7,7 +7,7 @@ export const dynamic = "force-dynamic"; const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL || "PLACEHOLDER"; const supabaseSecretServiceKey = - process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY || "PLACEHOLDER"; + process.env.SUPABASE_SERVICE_ROLE_SECRET || "PLACEHOLDER"; /* Create card * Not creating directly from client because: