This is a Gatsby source plugin for building websites using the Storyblok headless CMS with true visual preview as a data source.
npm install --save gatsby-source-storyblok
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
}
}
]
}
{
allStoryblokEntry {
edges {
node {
id
name
created_at
published_at
uuid
slug
full_slug
content
is_startpage
parent_id
group_id
}
}
}
}
{
StoryblokEntry {
edges {
node {
id
name
created_at
published_at
uuid
slug
full_slug
content
is_startpage
parent_id
group_id
}
}
}
}