mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2024-12-12 08:46:34 +01:00
Fix next.config for new nextron
This commit is contained in:
parent
55d02a2e9a
commit
b3c2f25c9b
@ -1,10 +1,17 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
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,
|
||||
images: {
|
||||
unoptimized: true,
|
||||
unoptimized: true
|
||||
},
|
||||
webpack: (config) => {
|
||||
webpack: config => {
|
||||
return config
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user