mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-09 22:57:21 +00:00
Added staging base url
This commit is contained in:
@ -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
|
||||
|
@ -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';
|
||||
|
Reference in New Issue
Block a user