nextjs-tailwind-ionic-capacitor-starter icon indicating copy to clipboard operation
nextjs-tailwind-ionic-capacitor-starter copied to clipboard

next export and NextJS 13

Open RobSchilderr opened this issue 2 years ago • 9 comments

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.

RobSchilderr avatar Oct 26 '22 14:10 RobSchilderr

@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

ZhymonNorman avatar Nov 03 '22 11:11 ZhymonNorman

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

mlynch avatar Nov 16 '22 19:11 mlynch

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

taig avatar Mar 28 '23 14:03 taig

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

now that is sick! Anyone tested it yet?

RobSchilderr avatar Mar 30 '23 13:03 RobSchilderr

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

mlynch avatar Mar 30 '23 13:03 mlynch

Is there any update on this matter?

vader1359 avatar Jul 31 '23 03:07 vader1359

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.

RobSchilderr avatar Aug 01 '23 09:08 RobSchilderr

@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?

vader1359 avatar Aug 05 '23 10:08 vader1359

@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.

RobSchilderr avatar Aug 17 '23 14:08 RobSchilderr

Resolved in #55

nathanchapman avatar Feb 27 '24 17:02 nathanchapman