mlynch / nextjs-tailwind-ionic-capacitor-starter

A starting point for building an iOS, Android, and Progressive Web App with Tailwind CSS, React w/ Next.js, Ionic Framework, and Capacitor
https://dev.to/ionic/build-mobile-apps-with-tailwind-css-next-js-ionic-framework-and-capacitor-3kij
MIT License
1.72k stars 349 forks source link

next export and NextJS 13 #41

Closed RobSchilderr closed 8 months ago

RobSchilderr commented 2 years ago

So, yesterday, Next.js 13 was released with a first beta preview of React Server Components enabled by default. It's a big deal, and it appears that server and client integration is becoming even more entwined.

I'm curious whether we'll be able to use next export in the future to create Capacitor/Next.js projects the same way we do here. What would it mean if they stopped supporting next export? Is it even worth using Next.js 13 with Capacitor right now?

It would be fantastic if there was a blog post or an answer to this, as it determines whether it is still worthwhile to use Next.js or Capacitor to build our apps. 

I'm guessing it's relevant to this repository because you guys try to keep the packages up to date here. Thanks for reading this issue and I hope this is the right place to discuss this.

ZhymonNorman commented 2 years ago

@RobSchilderr I was hoping for this as well, sadly Next 13 doesn't support next export at this time however, it is on the roadmap seen here

mlynch commented 2 years ago

This would be a question for the Next.js team. My understanding is the standard next export continues to work in Next 13, just not in the new app directory features

taig commented 1 year ago

Static export for app directory just landed in canary https://beta.nextjs.org/docs/configuring/static-export

RobSchilderr commented 1 year ago

https://beta.nextjs.org/docs/configuring/static-export

now that is sick! Anyone tested it yet?

mlynch commented 1 year ago

Seems like they've added new capabilities to it, no? Exciting!

vader1359 commented 1 year ago

Is there any update on this matter?

RobSchilderr commented 1 year ago

Is there any update on this matter?

yeah next export is added, so you could in theory use the new /app router, but you'd have to use a lot of use client I guess. I know people are busy with it, you can find them in the Capacitor Discord.

vader1359 commented 1 year ago

@RobSchilderr The last time I tried when the next export released I still cannot make it work, and it's a bit overwhelming for me to fix the errors. Do you have plan to add it to your Supertoken repo or any example some succesfully match this?

RobSchilderr commented 1 year ago

@RobSchilderr The last time I tried when the next export released I still cannot make it work, and it's a bit overwhelming for me to fix the errors. Do you have plan to add it to your Supertoken repo or any example some succesfully match this?

No as far as I know there is not any example out there. I did however recently make some updates to my NextJS and Capacitor repo.

nathanchapman commented 8 months ago

Resolved in #55