vladye
vladye

Reputation: 91

Is it possible to use Capacitor with the new "/app" structure of NextJS 13?

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

Answers (1)

Eason Chan
Eason Chan

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

Related Questions