This is the project you get when you run gridsome create https://github.com/Edmund1645/gridsome-storyblok-blog
.
npm install --global @gridsome/cli
gridsome create https://github.com/Edmund1645/gridsome-storyblok-blog
to install this startercd gridsome-storyblok-blog
to open the foldergridsome develop
to start a local dev server athttp://localhost:8080
- Happy coding 🎉🙌
In gridsome.config.js
add your Storyblok space public access token like this:
plugins: [
{
use: 'gridsome-source-storyblok',
options: {
client: {
accessToken: process.env.STORYBLOK_ACCESS_TOKEN // access token here
},
version: 'published',
typeName: 'StoryblokEntry'
}
}
];