mirror of
https://github.com/Dvorinka/1356.git
synced 2026-06-05 04:22:55 +00:00
small fix, don't worry about it
This commit is contained in:
@@ -11,11 +11,25 @@ Future<void> bootstrap() async {
|
||||
await HomeWidget.setAppGroupId(Env.iosAppGroupId);
|
||||
}
|
||||
|
||||
await Supabase.initialize(
|
||||
url: Env.supabaseUrl,
|
||||
anonKey: Env.supabaseAnonKey,
|
||||
debug: true,
|
||||
);
|
||||
|
||||
initializeSupabaseClient();
|
||||
// Only initialize Supabase if we have valid credentials
|
||||
if (Env.supabaseUrl.isNotEmpty &&
|
||||
Env.supabaseUrl != 'https://your-project.supabase.co' &&
|
||||
Env.supabaseAnonKey.isNotEmpty &&
|
||||
Env.supabaseAnonKey != 'your-anon-key') {
|
||||
try {
|
||||
await Supabase.initialize(
|
||||
url: Env.supabaseUrl,
|
||||
anonKey: Env.supabaseAnonKey,
|
||||
debug: true,
|
||||
);
|
||||
initializeSupabaseClient();
|
||||
} catch (e) {
|
||||
// If Supabase initialization fails, continue without it
|
||||
print('Warning: Supabase initialization failed: $e');
|
||||
print('App will run in offline mode');
|
||||
}
|
||||
} else {
|
||||
print('Warning: Valid Supabase credentials not provided');
|
||||
print('App will run in offline mode');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user