Skip to content

Commit 0860f76

Browse files
committed
fix deployment issues
1 parent 37e9f10 commit 0860f76

File tree

6 files changed

+6
-245
lines changed

6 files changed

+6
-245
lines changed

app/api/health/route.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

app/api/user/profile/route.ts

Lines changed: 0 additions & 94 deletions
This file was deleted.

lib/supabase.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import { createClient } from '@supabase/supabase-js';
22

3-
const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL!;
4-
const supabaseAnonKey = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!;
3+
const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL || '';
4+
const supabaseAnonKey = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY || '';
5+
6+
if (!supabaseUrl || !supabaseAnonKey) {
7+
console.warn('Supabase environment variables are not set');
8+
}
59

610
export const supabase = createClient(supabaseUrl, supabaseAnonKey);

services/api.service.ts

Lines changed: 0 additions & 73 deletions
This file was deleted.

services/index.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

services/user.service.ts

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)