nextron icon indicating copy to clipboard operation
nextron copied to clipboard

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

Open noevermaurice opened this issue 1 year ago • 4 comments

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.

noevermaurice avatar Nov 26 '23 09:11 noevermaurice

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

bm777 avatar Dec 02 '23 15:12 bm777

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

sandypockets avatar Jan 03 '24 23:01 sandypockets

@saltyshiomix is working on it.

bm777 avatar Jan 04 '24 00:01 bm777

@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,
  },
}

saltyshiomix avatar Jun 16 '24 07:06 saltyshiomix