feat(MED-85): fix wrong env variable name

This commit is contained in:
2025-07-31 12:00:13 +03:00
parent 87363051cd
commit c91adc7521
4 changed files with 13 additions and 10 deletions

View File

@@ -12,8 +12,7 @@ async function syncData() {
const baseUrl = process.env.CONNECTED_ONLINE_URL;
const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL;
const supabaseServiceRoleKey =
process.env.NEXT_PUBLIC_SUPABASE_SERVICE_ROLE_KEY;
const supabaseServiceRoleKey = process.env.SUPABASE_SERVICE_ROLE_KEY;
if (!baseUrl || !supabaseUrl || !supabaseServiceRoleKey) {
throw new Error('Could not access all necessary environment variables');