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

Is there an example of next js app router ? I tried ,but failed. #475

Open
imtiger opened this issue Jul 21, 2024 · 3 comments
Open

Is there an example of next js app router ? I tried ,but failed. #475

imtiger opened this issue Jul 21, 2024 · 3 comments
Labels
good first issue Good for newcomers

Comments

@imtiger
Copy link

imtiger commented Jul 21, 2024

the default created project using the page router,but I want to using the app router ,how can id do it? Is there an examerple for the next js app router?

@saltyshiomix
Copy link
Owner

Hi, @imtiger

Electron can handle only static files in production mode, so nextron needs to run the command next export(currently next build with { output: 'export' } in next.config.js).

You can use app router as long as you can export static files, otherwise it is not supported.
So we don't have examples of app router 🙇

@dlt1111
Copy link

dlt1111 commented Jul 21, 2024

@imtiger
i guess u want to use the app router mode of nextjs.
u can adjust your structure of renderer directory by urself, according to app router mode. like this
image
cc @saltyshiomix

@imtiger
Copy link
Author

imtiger commented Jul 22, 2024

@imtiger i guess u want to use the app router mode of nextjs. u can adjust your structure of renderer directory by urself, according to app router mode. like this image cc @saltyshiomix

thanks,I have make it work using app router

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants