This repository includes all the code necessary to follow our latest Build a GEO-ready website with Storyblok and Astro tutorial.
No Storyblok account yet? Sign up now to experience a 14-day free trial of all features and enjoy our completely free Starter plan.
git clone https://github.com/storyblok/tutorial-astro-geo.gitnpm installRename the file .env.example to .env and provide your Storyblok access token (find it under Settings > Access Tokens in your Storyblok space):
STORYBLOK_DELIVERY_API_TOKEN="<REPLACE_WITH_YOUR_TOKEN>"Use storyblok CLI to push the schema to your space.
Replace SPACE_ID with your space ID (find it under Settings > Space):
storyblok components push --space SPACE_ID --from 286418659300597
To render a preview of the local project in the Visual Editor, follow these steps:
- Navigate to Settings > Visual Editor.
- Set the default environment to
https://localhost:4321/. - Navigate to Content and open the
homestory. - Select Config and type
/in the Real path.
Start Astro's development server:
npm run devHappy building!