Whalebird-desktop-client-ma.../renderer/next.config.js

18 lines
414 B
JavaScript
Raw Normal View History

2023-11-01 17:20:27 +01:00
/** @type {import('next').NextConfig} */
module.exports = {
2024-07-18 15:44:03 +02:00
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',
2023-11-01 17:20:27 +01:00
trailingSlash: true,
images: {
2024-07-18 15:44:03 +02:00
unoptimized: true
2023-11-01 17:20:27 +01:00
},
2024-07-18 15:44:03 +02:00
webpack: config => {
2023-11-01 17:20:27 +01:00
return config
2024-07-18 15:44:03 +02:00
}
2023-11-01 17:20:27 +01:00
}