From 009cfba073504d1fdb50282e2d95101c2b051084 Mon Sep 17 00:00:00 2001 From: Lelisa Hailu <189599041+lelisa21@users.noreply.github.com> Date: Tue, 7 Apr 2026 07:09:43 +0300 Subject: [PATCH] Add production flag to Env class --- lib/core/config/env.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/core/config/env.dart b/lib/core/config/env.dart index 05a5256..5900fc3 100644 --- a/lib/core/config/env.dart +++ b/lib/core/config/env.dart @@ -2,8 +2,12 @@ import 'package:flutter/foundation.dart'; class Env { Env._(); - + static const bool isProd = false; + static String get baseUrl { + if (isProd) { + return 'https://gdg-appointment-booking-system.onrender.com/api'; + } if (kIsWeb) { return 'http://localhost:3000'; }