saltyshiomix / nextron

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

Support for Next 13 App #399

Open remendes opened 1 year ago

remendes commented 1 year ago

I need to use Next 13 App with its corresponding features and directory structure.

When installed, I found nextron adds next 12.3.4 version with its package.json.

Can I upgrade directly to next 13.4.5?

How can I reorganize the directory structure to use app, api, [other], etc ?

Can can I setup nextron to start at src\page.tsx as on NextJs 13?

kacperkwapisz commented 1 year ago

@saltyshiomix when is the upgrade to nextjs 13 coming?

saltyshiomix commented 1 year ago

@kacperkwapisz CC: @remendes

Sorry for late reply 🙇

I will release nextron@9 this month or next month!

Here is a new roadmaps:

aztran commented 1 year ago

@saltyshiomix if next13 is already supported. can we upgrade our existing repo using prev nextron ?

noevermaurice commented 12 months ago

next js 13.3 works with nextron i use it but i am happy when it is offical @saltyshiomix

saltyshiomix commented 3 months ago

@remendes @kacperkwapisz @aztran @noevermaurice

Sorry for late reply and inconvenience.

I just released nextron v9.0.0, which supports next.js v13 and v14. If you have time, please try it :) (and it will fix the errors, I believe)


NOTE:

Please update renderer/next.config.js as belows:

module.exports = {
  output: 'export',
  // we want to change distDir to "app" so as nextron can build the app in production mode!
  distDir: process.env.NODE_ENV === 'production' ? '../app' : '.next',
  trailingSlash: true,
  images: {
    unoptimized: true,
  },
}