Skip to content

Commit 7cbd103

Browse files
committed
Fix github action merge conflicts and static build error
1 parent 866f7c6 commit 7cbd103

2 files changed

Lines changed: 5 additions & 14 deletions

File tree

.github/workflows/build-apk.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,19 @@ jobs:
3737
run: pnpm install
3838

3939
- name: Build Next.js app
40-
<<<<<<< HEAD
4140
run: |
4241
# Ensure Next.js builds as a static export
4342
if ! grep -q "output: 'export'" next.config.mjs; then
4443
sed -i "s/const nextConfig = {/const nextConfig = {\n output: 'export',/" next.config.mjs
4544
fi
45+
# Move API routes out of the way because they cannot be statically exported
46+
if [ -d "app/api" ]; then
47+
mv app/api .temp-api-backup
48+
fi
4649
pnpm run build
4750
env:
4851
NODE_ENV: production
49-
52+
5053
- name: Prepare Capacitor files
5154
run: |
5255
# Install capacitor CLI and core
@@ -65,17 +68,6 @@ jobs:
6568
# Add and sync the android platform
6669
rm -rf android # Remove the broken or incomplete android folder
6770
npx cap add android
68-
=======
69-
run: pnpm run build
70-
env:
71-
# Add any environment variables needed for the build here
72-
NODE_ENV: production
73-
74-
- name: Sync Capacitor Android
75-
run: |
76-
mkdir -p android/app/src/main/assets/public
77-
npx cap sync android
78-
>>>>>>> 12b26fde93279a95bad56583bdd00a1a39766d7d
7971
8072
- name: Build APK
8173
working-directory: ./android

next.config.mjs

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

1615
export default nextConfig;

0 commit comments

Comments
 (0)