From 841a3adb74b646b647537798b9fb621312e74ae7 Mon Sep 17 00:00:00 2001 From: Yasien Mac Mini Date: Wed, 10 Sep 2025 13:34:31 +0200 Subject: [PATCH] add app url env --- Frontend/lib/mih_config/mih_env.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Frontend/lib/mih_config/mih_env.dart b/Frontend/lib/mih_config/mih_env.dart index 0cfe35b8..54e0e4da 100644 --- a/Frontend/lib/mih_config/mih_env.dart +++ b/Frontend/lib/mih_config/mih_env.dart @@ -6,6 +6,7 @@ enum Enviroment { dev, prod } // abstract class AppEnviroment { + static late String baseAppUrl; static late String baseApiUrl; static late String baseAiUrl; static late String baseFileUrl; @@ -21,6 +22,7 @@ abstract class AppEnviroment { { if (kIsWeb) { //================= Web Dev Urls ================= + baseAppUrl = "http://localhost:80"; baseApiUrl = "http://localhost:8080"; baseFileUrl = "http://localhost:9000"; baseAiUrl = "http://localhost:11434"; @@ -28,12 +30,14 @@ abstract class AppEnviroment { break; } else if (Platform.isAndroid) { //================= Android Dev Urls ================= + baseAppUrl = "http://10.0.2.2:80"; baseApiUrl = "http://10.0.2.2:8080"; baseFileUrl = "http://10.0.2.2:9000"; baseAiUrl = "http://10.0.2.2:11434"; bannerAdUnitId = 'ca-app-pub-3940256099942544/9214589741'; } else { //================= Web & iOS Dev Urls ================= + baseAppUrl = "http://localhost:80"; baseApiUrl = "http://localhost:8080"; baseFileUrl = "http://localhost:9000"; baseAiUrl = "http://localhost:11434"; @@ -43,6 +47,7 @@ abstract class AppEnviroment { } case Enviroment.prod: { + baseApiUrl = "https://app.mzansi-innovation-hub.co.za"; baseApiUrl = "https://api.mzansi-innovation-hub.co.za"; baseFileUrl = "https://minio.mzansi-innovation-hub.co.za"; baseAiUrl = "https://ai.mzansi-innovation-hub.co.za";