We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c0ee91 commit 4d20c22Copy full SHA for 4d20c22
src/home/github-types.ts
@@ -64,8 +64,10 @@ export interface AvatarCache {
64
export const GITHUB_TASKS_STORAGE_KEY = "gitHubTasks";
65
66
// supabase key should be dynamic incase of change and testing
67
-if (!process.env.SUPABASE_URL) throw new Error("SUPABASE_URL not found");
68
-const supabaseUrl = process.env.SUPABASE_URL.split(".")[0];
+let supabaseUrl = "";
+if (process.env.SUPABASE_URL) {
69
+ supabaseUrl = process.env.SUPABASE_URL.split(".")[0];
70
+}
71
export const SUPABASE_STORAGE_KEY = supabaseUrl.substring(supabaseUrl.lastIndexOf("/") + 1);
72
73
export type TaskStorageItems = {
0 commit comments