-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[gatsby-source-contentful@next] Missing content when loading multiple Contentful Spaces #26875
Comments
Could you help us out with a reproduction please? 🙂 |
The code of the plugin assumes there is only one Contentful source. It would require a significant rewrite to allow multiple spaces as source |
@sidharthachatterjee trying to figure out the best way since I would need to expose my api tokens for that. But I think @axe312ger confirms that it doesn't work. @axe312ger oh got it so I think this should be noted as a breaking change right? I know a couple of people who are querying multiple spaces into the same website in production. What would be a better alternative to make multiple spaces work? My client right now wants to crosspost his blog posts to another gatsby website that also uses contentful. I really like the next version and I don't want to downgrade to the old version. Thanks! |
@daydream05 not an ideal solution, but now that Contentful offers its GraphQL API to all space levels, you could use the gatsby-source-graphql plugin to source from Contentful manually for your second space. |
@alex-tgk Oh thank you i'll look into that! That might actually be better since pulling multiple spaces causes field collusions anyway. |
We will fix this in #27244 which contains most of the fixes of the rich text canary :) |
Description
Content and fields are missing when sourcing from multiple content spaces
I'm using the next version of Contentful
Steps to reproduce
yarn add gatsby-source-contentful@next
Then do something like this:
Expected result
The expected result should have the Content Models from the
second_space
be filled with fields and content.Actual result
Only the internals show up:
The contents from the first space is fine but the second space is always messed up.
Environment
The text was updated successfully, but these errors were encountered: