Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
chore: remove url (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
omartinma authored Dec 13, 2023
1 parent bf4694e commit b96d1d3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy_app_staging.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name: deploy_app_production
name: deploy_app_staging

on:
workflow_dispatch:

jobs:
deploy-dev:
runs-on: ubuntu-latest
name: Deploy App Production
name: Deploy App Staging
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.16.2"
channel: "stable"
- run: flutter packages get
- run: flutter build web -t lib/main_production.dart --dart-define SHARING_ENABLED=true --dart-define="AI_API_URL=${{ secrets.AI_API_URL }}"
- run: flutter build web -t lib/main_staging.dart
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
Expand Down
7 changes: 0 additions & 7 deletions .idea/runConfigurations/production.xml

This file was deleted.

3 changes: 1 addition & 2 deletions lib/main_production.dart → lib/main_staging.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ void main() async {
await bootstrap(
() async {
final apiClient = ApiClient(
realApiEnabled: true,
baseUrl: const String.fromEnvironment('AI_API_URL'),
baseUrl: 'http://staging',
);

final questionsRepository =
Expand Down

0 comments on commit b96d1d3

Please sign in to comment.