Go Pro Sign Up Login
0 days 0 hrs 0 min 0 sec

Summer Sale

50% off Level Up Pro until you unsubscribe.
Get access to ALL 128 courses on Level Up Tutorials

This is your last chance to get Level Up Pro for $145/year.

or Learn More
Moon Moon

Buy Now and unlock this series

$

49

.99

$

34

.99

yours forever

Become a Pro and unlock everything

$

24

.99

per month

Plugins And Transformers

Downloads

Become a pro to download code and videos

Comments

User avatar

Filip

over 3 years ago [edited]

^ https://gridsome.org/plugins/@gridsome/source-contentful

Add yarn add @gridsome/source-contentful

module.exports = {
  plugins: [
    {
      use: '@gridsome/source-contentful',
      options: {
        space: 'YOUR_SPACE', // required
        accessToken: 'YOUR_ACCESS_TOKEN', // required
        host: 'cdn.contentful.com',
        environment: 'master',
        typeName: 'Contentful'
      }
    }
  ]
}

Marlowe

over 3 years ago

How would one go about using markdown​ from external APIs like Contentful?

Want to join the conversation?

Become a Pro member today!