diff --git a/.github/workflows/main_deploy.yaml b/.github/workflows/main_deploy.yaml index 4800aa0c5..d3567e06e 100644 --- a/.github/workflows/main_deploy.yaml +++ b/.github/workflows/main_deploy.yaml @@ -32,6 +32,7 @@ jobs: mv build/web public touch public/.env echo "$WEB_APP_ENV" >> public/.env + cp public/.env public/assets/.env - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 with: diff --git a/pubspec.yaml b/pubspec.yaml index f0275779f..395299f12 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -132,7 +132,6 @@ flutter: generate: true uses-material-design: true assets: - - .env - assets/ - assets/pangea/ - assets/pangea/bot_faces/ diff --git a/scripts/build-web.sh b/scripts/build-web.sh index 603a84301..8e46ed749 100755 --- a/scripts/build-web.sh +++ b/scripts/build-web.sh @@ -2,5 +2,5 @@ flutter config --enable-web flutter clean flutter pub get -flutter build web --dart-define=FLUTTER_WEB_CANVASKIT_URL=canvaskit/ --source-maps --base-href "/client/" +flutter build web --dart-define=FLUTTER_WEB_CANVASKIT_URL=canvaskit/ --profile --source-maps --base-href "/client/" # flutter build web --release --verbose --source-maps --dart-define=SENTRY_RELEASE=$CI_COMMIT_SHA