CI: force dev mode removal

This commit is contained in:
NoCrypt 2024-07-28 15:54:38 +07:00
parent 3a11414155
commit 7bc56b419e
2 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -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