diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index b4a0c725..4bed32ca 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -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 diff --git a/capacitor/capacitor.config.js b/capacitor/capacitor.config.js index 0e62ba93..2fdb99f8 100644 --- a/capacitor/capacitor.config.js +++ b/capacitor/capacitor.config.js @@ -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