Revert "Unify workspace dropdowns; Update layouts (#458)"

This reverts commit 4bc8448a1d.
This commit is contained in:
gbuomprisco
2026-03-11 14:47:47 +08:00
parent 4bc8448a1d
commit 4912e402a3
530 changed files with 11182 additions and 14382 deletions

View File

@@ -1,9 +1,9 @@
import 'server-only';
import * as z from 'zod';
import { z } from 'zod';
const message =
'Invalid Supabase Secret Key. Please add the environment variable SUPABASE_SECRET_KEY.';
'Invalid Supabase Secret Key. Please add the environment variable SUPABASE_SECRET_KEY or SUPABASE_SERVICE_ROLE_KEY.';
/**
* @name getSupabaseSecretKey
@@ -13,12 +13,14 @@ const message =
export function getSupabaseSecretKey() {
return z
.string({
error: message,
required_error: message,
})
.min(1, {
message: message,
})
.parse(process.env.SUPABASE_SECRET_KEY);
.parse(
process.env.SUPABASE_SECRET_KEY || process.env.SUPABASE_SERVICE_ROLE_KEY,
);
}
/**