saltyshiomix / nextron

⚡ Next.js + Electron ⚡
https://npm.im/nextron
MIT License
3.88k stars 223 forks source link

Next 14 "output: export" in next.config.js. dosn't work #425

Open noevermaurice opened 10 months ago

noevermaurice commented 10 months ago

I want to use next 14 but the build does not work because I cannot use "output: export" in next.config.js. how can I change the build of next js to

"output: export" in next.config.js.

bm777 commented 10 months ago

@noevermaurice The next version of Nextron will include Next 14. @saltyshiomix Corrrect me, if I'm wrong

sandypockets commented 9 months ago

Is there a public branch for the next version? I don't see a v9 branch yet

bm777 commented 9 months ago

@saltyshiomix is working on it.

saltyshiomix commented 3 months ago

@noevermaurice @bm777 @sandypockets

Sorry for late reply and inconvenience.

I just released nextron v9.0.0, which supports next.js v13 and v14. If you have time, please try it :)


NOTE:

Please update renderer/next.config.js as belows:

module.exports = {
  output: 'export',
  // we want to change distDir to "app" so as nextron can build the app in production mode!
  distDir: process.env.NODE_ENV === 'production' ? '../app' : '.next',
  trailingSlash: true,
  images: {
    unoptimized: true,
  },
}