nextron icon indicating copy to clipboard operation
nextron copied to clipboard

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

Open imtiger opened this issue 1 year ago • 3 comments

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?

imtiger avatar Jul 21 '24 02:07 imtiger

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 🙇

saltyshiomix avatar Jul 21 '24 02:07 saltyshiomix

@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

dlt1111 avatar Jul 21 '24 08:07 dlt1111

@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

imtiger avatar Jul 22 '24 11:07 imtiger