Newest post because yes
We'll be using Contentful's Content Delivery API since we want to retrieve published data only, so be sure to grab the Content Delivery API key and not the Content Preview API key.
In your gatsby-config.js file, add the configuration object to the plugins array:
View more postsBack to Home
plugins: [ ... { resolve: `gatsby-source-contentful`, options: { spaceId: `YOUR_SPACE_ID`, accessToken: `YOUR_CONTENT_DELIVERY_API_KEY` } } ],