You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've created a Drupal instance to feed 2 next.js sites and configured the entity node > article to be resolved by entity reference. Don't know if this is a bug or could be a new feature request. Visiting each site, I see all nodes, regardless of their configured site. Probably I'm missing some tweaks on node.js side. But isn't possible to resolve this transparently, only from Drupal side + site resolver?
Limiting the resources available at the JSON:API might be useful in some cases.
I think in all cases. Because we don't want to risk that a site shows, by mistake, content leaked from a different site. Limiting on JSON:API level would be more secure and would also allow to control site filtering from a single point. Somehow, the JSON:API response should be SiteResolverInterface::getSitesForEntity() aware.
I've created a Drupal instance to feed 2 next.js sites and configured the entity node > article to be resolved by entity reference. Don't know if this is a bug or could be a new feature request. Visiting each site, I see all nodes, regardless of their configured site. Probably I'm missing some tweaks on node.js side. But isn't possible to resolve this transparently, only from Drupal side + site resolver?
EDIT: OK, just found out this https://next-drupal.org/docs/data-fetching/filter-by-site. However, it would be nice to be able to avoid that.
The text was updated successfully, but these errors were encountered: