File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
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
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ const nextConfig = {
1010 ignoreDuringBuilds : true ,
1111 } ,
1212 turbopack : { root : '.' } ,
13- output : 'export' ,
1413} ;
1514
1615export default nextConfig ;
You can’t perform that action at this time.
0 commit comments