Better supabase error message (#336)

Fixes #287
This commit is contained in:
Will Chen
2025-06-04 22:22:00 -07:00
committed by GitHub
parent 3558663ab7
commit 7f410ce830
4 changed files with 329 additions and 3 deletions

View File

@@ -13,7 +13,9 @@ async function getPublishableKey({ projectId }: { projectId: string }) {
);
if (!publishableKey) {
throw new Error("No publishable key found for project");
throw new Error(
"No publishable key found for project. Make sure you are connected to the correct Supabase account and project. See https://dyad.sh/docs/integrations/supabase#no-publishable-keys",
);
}
return publishableKey.api_key;
}