@bildquadrat/gatsby-source-storyblok

0.1.1 • Public • Published

Introduction

This is a Gatsby source plugin for building websites using the Storyblok headless CMS with true visual preview as a data source.

How to install

npm install --save gatsby-source-storyblok

How to use?

module.exports = {
  plugins: [
    {
      resolve: 'gatsby-source-storyblok',
      options: {
        accessToken: 'YOUR_TOKEN',
        homeSlug: 'home',
        version: 'draft',
        timeout: 5000 // only needed if you want to increase the request timeout - default is 5000
      }
    }
  ]
}

How to query?

All Content Entries

{
  allStoryblokEntry {
    edges {
      node {
        id
        name
        created_at
        published_at
        uuid
        slug
        full_slug
        content
        is_startpage
        parent_id
        group_id
      }
    }
  }
}

A Single Content Entry

{
  StoryblokEntry {
    edges {
      node {
        id
        name
        created_at
        published_at
        uuid
        slug
        full_slug
        content
        is_startpage
        parent_id
        group_id
      }
    }
  }
}

Package Sidebar

Install

npm i @bildquadrat/gatsby-source-storyblok

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

40.7 kB

Total Files

6

Last publish

Collaborators

  • lucasforster
  • leolabs
  • neolegends
  • mraerino