Reputation: 91
I am struggling to use Capacitor for my NextJS 13 application which uses new the App router.
Is it possible to somehow create an "out" folder and a "index.html" when building the application while using the new "/app" structure of a NextJS13 project?
I read the Capacitor documentation and seen blogs such as this one without success.
Upvotes: 9
Views: 2075
Reputation: 11
You'll need to use NextJS's static export feature, but it's quite troublesome. Because in this mode, many of NextJS's core features are not available, requiring significant modifications.
https://nextjs.org/docs/app/building-your-application/deploying/static-exports
Upvotes: 0