contentful-labs / starter-gatsby-blog

Gatsby starter for a Contentful project from the community.
https://contentful.github.io/starter-gatsby-blog/
MIT License
195 stars 199 forks source link

The wrong Contentful access token is being set in the Heroku onboarding walkthrough. #130

Closed davidrouten closed 3 years ago

davidrouten commented 4 years ago

First off, really enjoying my trip through Contentful's trial :).

I ran into a small hitch when following your onboarding documentation at https://app.contentful.com/spaces/my-space-id/onboarding/deploy for getting started on Heroku.

The fifth step that sets the Heroku config variables appears to use an outdated config token name CONTENTFUL_DELIVERY_TOKEN instead of CONTENTFUL_ACCESS_TOKEN which is used in the gatsby-config.js file among others:

Screen Shot 2020-08-05 at 2 35 48 PM

Deploying the app the first time gave me an error:

Screen Shot 2020-08-05 at 2 27 23 PM

Changing the token from CONTENTFUL_DELIVERY_TOKEN to CONTENTFUL_ACCESS_TOKEN in my Heroku dashboard's Settings -> Config vars section did the trick and the next deploy worked perfectly.