shadcn
shadcn
Yes. The Next [module](https://www.drupal.org/project/next) works with both JSON API and GraphQL. The [next-drupal](https://github.com/chapter-three/next-drupal/tree/main/packages/next-drupal) however works only with JSON API right now.
Not for now. However we are following @jmolivas work on schema generation and will decide on how best to support it.
See also https://www.chapterthree.com/blog/nextjs-drupal-and-graphql-how-to-use-graphql-next-drupal
I agree. 💯 I tried to outline a possible implementation here (this was before on-demand ISR): https://twitter.com/shadcn/status/1478417144924676096 Unfortunately Next.js only supports path based revalidation for now. I'm also interested in...
Adding links to some ongoing discussions: https://github.com/vercel/next.js/discussions/34585 https://github.com/vercel/next.js/discussions/34567
Nice. This is a great example of extending the `SiteResolver` plugin. Happy to see this :) I'll take a look at it. (Thank you for including tests. Appreciate it)
I see. So you want the `/home` on Drupal to show the `index.tsx` page from Next.js?
You can use the `hook_next_site_preview_alter` to do this. Here's an example where I'm showing the preview for `/about` on the `/home` page. ```php /** * Implements hook_next_site_preview_alter(). */ function MODULE_NAME_next_site_preview_alter(array...
@simon-olsen did this work?
Looks like a bug. I've been able to reproduce this. Looking into it. Thank you.