saltyshiomix / nextron

⚡ Next.js + Electron ⚡
https://npm.im/nextron
MIT License
3.94k stars 227 forks source link

Nextron exports the build results to "app" directory, so please set "distDir" to "../app" in next.config.js #478

Open yanquer opened 3 months ago

yanquer commented 3 months ago

why not allow set distDir?

In nextjs14. I can run next build src/renderer with dist: "../../app" ,

why nextron not allow?

my project


├── src
 │   ├── main
 │   ├── renderer

nextron.config.js

module.exports = {
  // specify an alternate main src directory, defaults to 'main'
  mainSrcDir: 'src/main',
  // specify an alternate renderer src directory, defaults to 'renderer'
  rendererSrcDir: 'src/renderer',

  // main process' webpack config
  webpack: (config, env) => {
    // do some stuff here
    return config
  },
}
RocksWon commented 3 months ago

I don't know but nextron js tends to have lots of problems.