Add peer management routes and server configuration services
This commit is contained in:
19
lib/config/supabase_config.dart
Normal file
19
lib/config/supabase_config.dart
Normal file
@@ -0,0 +1,19 @@
|
||||
import 'dart:io';
|
||||
import 'package:dotenv/dotenv.dart';
|
||||
import 'package:supabase/supabase.dart';
|
||||
import 'package:waylume_server/core/utils.dart';
|
||||
|
||||
var env = DotEnv()..load();
|
||||
|
||||
dynamic fromEnivronment(String key) {
|
||||
if (kIsRunningInDocker) {
|
||||
return Platform.environment[key];
|
||||
} else {
|
||||
return env[key];
|
||||
}
|
||||
}
|
||||
|
||||
final SupabaseClient SUPABASE_CLIENT = SupabaseClient(
|
||||
"https://lsdrctuvnwdrzrdyoqzu.supabase.co",
|
||||
fromEnivronment('SUPABASE_KEY')!
|
||||
);
|
||||
Reference in New Issue
Block a user