When I add CONTENTFUL_HOST to my env vars, I get the following error:
Accessing your Contentful space failed.
Try setting GATSBY_CONTENTFUL_OFFLINE=true to see if we can serve from cache.
Used options:
spaceId: "*********"
accessToken: "***************************************"
host: "preview.contentful.com"
If I remove CONTENTFUL_HOST it can access the space with no issues.
I set up my project using the setup script and I entered the Content Delivery API access token when it asked for it. However, in the contentful API settings there are two API tokens - delivery & preview. I am assuming that I'm getting this error because it needs to use the preview api token but there is nowhere to put the preview api token in the gatsby-config. There is only one spot for accessToken.
When I add CONTENTFUL_HOST to my env vars, I get the following error:
If I remove CONTENTFUL_HOST it can access the space with no issues.
I set up my project using the setup script and I entered the Content Delivery API access token when it asked for it. However, in the contentful API settings there are two API tokens - delivery & preview. I am assuming that I'm getting this error because it needs to use the preview api token but there is nowhere to put the preview api token in the gatsby-config. There is only one spot for accessToken.