File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,17 @@ import { createClient } from '@supabase/supabase-js';
33const supabaseUrl = import . meta. env . VITE_SUPABASE_URL ;
44const supabaseAnonKey = import . meta. env . VITE_SUPABASE_ANON_KEY ;
55
6+ // Log for debugging
7+ console . log ( 'Supabase URL:' , supabaseUrl ? 'Set' : 'Missing' ) ;
8+ console . log ( 'Supabase Key:' , supabaseAnonKey ? 'Set' : 'Missing' ) ;
9+
610if ( ! supabaseUrl || ! supabaseAnonKey ) {
7- throw new Error ( 'Missing Supabase environment variables' ) ;
11+ console . error ( 'Missing Supabase environment variables' ) ;
12+ console . error ( 'VITE_SUPABASE_URL:' , supabaseUrl ) ;
13+ console . error ( 'VITE_SUPABASE_ANON_KEY:' , supabaseAnonKey ) ;
814}
915
10- export const supabase = createClient ( supabaseUrl , supabaseAnonKey , {
16+ export const supabase = createClient ( supabaseUrl || '' , supabaseAnonKey || '' , {
1117 auth : {
1218 autoRefreshToken : true ,
1319 persistSession : true ,
Original file line number Diff line number Diff line change @@ -5,6 +5,15 @@ import path from "path";
55
66export default defineConfig ( ( { mode } ) => ( {
77 base : mode === 'production' ? '/' : '/bb84_simulation/' ,
8+ build : {
9+ outDir : 'dist' ,
10+ sourcemap : false ,
11+ rollupOptions : {
12+ output : {
13+ manualChunks : undefined
14+ }
15+ }
16+ } ,
817 server : {
918 host : "::" ,
1019 port : 8080 ,
You can’t perform that action at this time.
0 commit comments