diff --git a/.github/workflows/azure-static-web-apps-salmon-ocean-0c2902310.yml b/.github/workflows/azure-static-web-apps-salmon-ocean-0c2902310.yml index 7e75f945..59699a36 100644 --- a/.github/workflows/azure-static-web-apps-salmon-ocean-0c2902310.yml +++ b/.github/workflows/azure-static-web-apps-salmon-ocean-0c2902310.yml @@ -26,20 +26,12 @@ jobs: with: flutter-version: '3.22.2' # Specify the Flutter version you want to use - - name: Load Environment Variables - run: | - echo "Loading environment variables from .env.production" - cat .env.production | grep -v '^#' >> $GITHUB_ENV - - name: Install dependencies run: flutter pub get - name: Build Flutter Web App run: | - flutter build web --release \ - --dart-define=ENV_NAME=${{ env.ENV_NAME }} \ - --dart-define=BASE_URL=${{ env.BASE_URL }} \ - --dart-define=FLAVOR=production + flutter build web - name: Build And Deploy id: builddeploy diff --git a/lib/utils/constants/api_const.dart b/lib/utils/constants/api_const.dart index 5d24b501..7a7e20a7 100644 --- a/lib/utils/constants/api_const.dart +++ b/lib/utils/constants/api_const.dart @@ -1,7 +1,8 @@ import 'package:flutter_dotenv/flutter_dotenv.dart'; abstract class ApiEndpoints { - static String baseUrl = dotenv.env['BASE_URL'] ?? ''; + // static String baseUrl = dotenv.env['BASE_URL'] ?? ''; + static String baseUrl = 'https://syncrow-staging.azurewebsites.net'; static const String signUp = '/authentication/user/signup'; static const String login = '/authentication/user/login'; static const String forgetPassword = '/authentication/user/forget-password';