Skip to content

Commit

Permalink
CI: force dev mode removal
Browse files Browse the repository at this point in the history
  • Loading branch information
NoCrypt committed Jul 28, 2024
1 parent 3a11414 commit 7bc56b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ jobs:
- name: Remove Cached Build
run: rm -rf ./build && mkdir ./build

- name: Forcefully Remove Developer Mode
run: |
sed -i "s@if (mode === 'development')@// if (mode === 'development')@g" ./capacitor.config.js
echo "Forcefully removed developer mode"
- name: Build Native + Web
run: pnpm run build:app

Expand Down
2 changes: 1 addition & 1 deletion capacitor/capacitor.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ const config = {
}
}

// if (mode === 'development') config.server.url = 'http://localhost:5001/index.html'
if (mode === 'development') config.server.url = 'http://localhost:5001/index.html'

module.exports = config

0 comments on commit 7bc56b4

Please sign in to comment.