Skip to content

Commit 4d20c22

Browse files
committed
fix: remove error throw here
1 parent 0c0ee91 commit 4d20c22

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/home/github-types.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,10 @@ export interface AvatarCache {
6464
export const GITHUB_TASKS_STORAGE_KEY = "gitHubTasks";
6565

6666
// 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];
67+
let supabaseUrl = "";
68+
if (process.env.SUPABASE_URL) {
69+
supabaseUrl = process.env.SUPABASE_URL.split(".")[0];
70+
}
6971
export const SUPABASE_STORAGE_KEY = supabaseUrl.substring(supabaseUrl.lastIndexOf("/") + 1);
7072

7173
export type TaskStorageItems = {

0 commit comments

Comments
 (0)