ionic-team / stencil-site

Stencil site and documentation source.
https://stenciljs.com/
MIT License
338 stars 421 forks source link

NextJS Integration Example with app router #1353

Open guenyoo opened 9 months ago

guenyoo commented 9 months ago

Hello everyone,

I'm currently looking into integrating Stencil with NextJS 14 and App Router.

Do you guys have a working example with a working SSR example in NextJS + App Router? It seems like it's not easily possible to use web-components on the server components side. All previous examples I could find with Next were using the pages router, so I'd be thrilled if you guys could give a detailed implementation guide and possibly also add it to your Docs.

Thanks in advance!

rwaskiewicz commented 8 months ago

Hey there!

Apologies for the delay in response here. At this time, we don't have such an example on hand. While I think a guide like this would be nice, but a little outside our scope. I'm going to leave this open for folks to upvote if they want it, and we can reconsider in the future.