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

chore: remove url #80

Merged
merged 4 commits into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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