saltyshiomix / nextron

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

Custom appDir #436

Open jt-l opened 5 months ago

jt-l commented 5 months ago

Right now it appears nextron hard codes the nextJS export to be 'app'.

I wonder if we can make it possible so that appDir is configurable?

I want to serve the application from a directory so that it matches the deeplink url as well.

e.g., when registering deeplink url to be , I want to also have nextron serve from ::/

It seems

https://github.com/saltyshiomix/nextron/blob/5bfc67eac7bd5b1f0f7385fba7a03c9532eb190a/lib/nextron-build.ts#L24

is where we would want to make it configurable (possibly using nextron config? or something exposed to the user) as the export is used here:

https://github.com/saltyshiomix/nextron/blob/5bfc67eac7bd5b1f0f7385fba7a03c9532eb190a/lib/nextron-build.ts#L44