Comments (2)
You can filter the nodes on the Next.js site by site id. We have some documentation here: https://next-drupal.org/docs/data-fetching/filter-by-site
Itβs handled on the Next end right now for flexibility. The data is available to all sites and they get to pick and filter what to display.
However I do see what you mean. Limiting the resources available at the JSON:API might be useful in some cases.
Iβll look into this and see how we can implement this.
from next-drupal.
@shadcn thank you.
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.
from next-drupal.
Related Issues (20)
- Add tests for esm/cjs builds HOT 1
- Request for Next-Drupal Roadmap for Upcoming Major/Minor Release HOT 2
- The documentation for the GraphQL starter should be updated to reflect the latest changes to the Drupal module dependencies. HOT 1
- NextEntityTypeConfig does not calculate dependencies
- Upgrade starters to App Router HOT 7
- Viewing a node when Next.js site doesn't have preview URL configured throws an exception HOT 2
- "403 Forbidden" Jest tests are failing
- Document how to patch the module from pull requests HOT 2
- Organize Jest tests by method
- Add tooling to test code coverage
- Preview with accessToken from next-auth HOT 1
- Is Turbopack supported ? HOT 4
- Use `url` form element on Next.js site forms
- NextSiteEntityController::environmentVariables consumer route should not be hardcoded
- To have a method or some helper to get the user access token from drupal
- Manage releases of starters HOT 3
- getResourceFromContext doesn't appear to respect per-method auth options during preview mode
- Use live URL for preview when viewing published node HOT 1
- Remove scope from preview URL generation and validation process HOT 1
- Too many Tokens call HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from next-drupal.