Skip to content

Commit

Permalink
Merge pull request #5005 from h3poteto/fix/output
Browse files Browse the repository at this point in the history
Fix next.config for new nextron
  • Loading branch information
h3poteto authored Jul 18, 2024
2 parents 55d02a2 + b3c2f25 commit 0c23530
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions renderer/next.config.js
Original file line number Diff line number Diff line change
@@ -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
},
}
}

0 comments on commit 0c23530

Please sign in to comment.