-
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
Contentful : Unable to access contentful data from different(develop) environment #5101
Comments
Hey @vigneshgowrabathuni, there's not enough information here to help you. Could you fill out the issue template? |
Hi @m-allanson Code Sample for Java Script:
Code sample for gatsby contentful plugin:
In Javascript we can mention respective environment let say master or stage or develop I have tried like this, but still i am unable to access data.
Here the challenge is I am unable to access data from develop environment, is there any alternative way to access data from specific environment? |
Hey @m-allanson and @vigneshgowrabathuni, Just to explain Here, we introduced recently a new feature at Contentful, so you can have different environments for your space think of it like branches. master is the default environment so that's why you can only see that, to get content from a different environment you need to tell the SDK that you are using a different one. One problem here is that the sync API, unfortunately, is only available in the master environment. This will hopefully change soon. |
Ah that explains it, thanks for the update @Khaledgarbaya! What's the best way to track updates to the sync API? |
Things might change very soon hopefully, I am discussing this with our backend team. |
Thanks for the update @Khaledgarbaya 😄 |
So I had a conversation with our backend team and they just enabled the feature for environments |
Fast work, thanks @Khaledgarbaya :) |
This is awesome @kaihendry! |
Hi,
In Contentful we have created a space, let say ABC and within that we have created two environments, like master and develop.
ABC
We have created API key and selected develop environment as well.
Problem:
we are unable to access the contentful data from develop environment.
The text was updated successfully, but these errors were encountered: