Use this package if you want to use nextjs in Cordova
You can help the project with the amount in Telegram: @bymagnum
Install this package
npm install next-cordova-static
Or:
yarn add next-cordova-static
This package will automatically start the build, as well as the export, will do everything necessary in the 'www' cordova folder.
I recommend saving the "www" folder before launching this package.
Add to your package.json (root nextjs) command:
"build:cordova": "next-cordova-static"