Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Next 13 App #399

Open
remendes opened this issue Sep 13, 2023 · 5 comments
Open

Support for Next 13 App #399

remendes opened this issue Sep 13, 2023 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@remendes
Copy link

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 remendes changed the title Support for Next 13 Support for Next 13 App Sep 13, 2023
@kacperkwapisz
Copy link

@saltyshiomix when is the upgrade to nextjs 13 coming?

@saltyshiomix
Copy link
Owner

@kacperkwapisz CC: @remendes

Sorry for late reply 🙇

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

Here is a new roadmaps:

@aztran
Copy link

aztran commented Sep 25, 2023

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

@noevermaurice
Copy link

noevermaurice commented Oct 6, 2023

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

@saltyshiomix saltyshiomix self-assigned this Jun 16, 2024
@saltyshiomix saltyshiomix added the enhancement New feature or request label Jun 16, 2024
@saltyshiomix
Copy link
Owner

saltyshiomix commented Jun 16, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants