Merge pull request #5005 from h3poteto/fix/output
Fix next.config for new nextron
This commit is contained in:
commit
0c23530e48
|
@ -1,10 +1,17 @@
|
||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
output: 'export',
|
||||||
|
distDir:
|
||||||
|
process.env.NODE_ENV === 'production'
|
||||||
|
? // we want to change `distDir` to "../app" so as nextron can build the app in production mode!
|
||||||
|
'../app'
|
||||||
|
: // default `distDir` value
|
||||||
|
'.next',
|
||||||
trailingSlash: true,
|
trailingSlash: true,
|
||||||
images: {
|
images: {
|
||||||
unoptimized: true,
|
unoptimized: true
|
||||||
},
|
},
|
||||||
webpack: (config) => {
|
webpack: config => {
|
||||||
return config
|
return config
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue