nextron
nextron copied to clipboard
Next 14 "output: export" in next.config.js. dosn't work
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 The next version of Nextron will include Next 14. @saltyshiomix Corrrect me, if I'm wrong
Is there a public branch for the next version? I don't see a v9 branch yet
@saltyshiomix is working on it.
@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,
},
}