Skip to content

Commit 12b26fd

Browse files
committed
chore: configure static export in next.config and ensure assets directory exists before capacitor sync
1 parent 9674301 commit 12b26fd

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/build-apk.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ jobs:
4343
NODE_ENV: production
4444

4545
- name: Sync Capacitor Android
46-
run: npx cap sync android
46+
run: |
47+
mkdir -p android/app/src/main/assets/public
48+
npx cap sync android
4749
4850
- name: Build APK
4951
working-directory: ./android

next.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const nextConfig = {
1010
ignoreDuringBuilds: true,
1111
},
1212
turbopack: { root: '.' },
13+
output: 'export',
1314
};
1415

1516
export default nextConfig;

0 commit comments

Comments
 (0)