nextron icon indicating copy to clipboard operation
nextron copied to clipboard

Support for Next 13 App

Open remendes opened this issue 1 year ago • 5 comments

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?

remendes avatar Sep 13 '23 20:09 remendes

@saltyshiomix when is the upgrade to nextjs 13 coming?

kacperkwapisz avatar Sep 19 '23 19:09 kacperkwapisz

@kacperkwapisz CC: @remendes

Sorry for late reply 🙇

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

Here is a new roadmaps:

  • https://github.com/saltyshiomix/nextron/issues/398

saltyshiomix avatar Sep 22 '23 22:09 saltyshiomix

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

aztran avatar Sep 25 '23 03:09 aztran

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

noevermaurice avatar Oct 06 '23 08:10 noevermaurice

@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,
  },
}

saltyshiomix avatar Jun 16 '24 07:06 saltyshiomix