This repository includes all the code necessary to follow our latest Build Accessible Websites 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-a11y.git
npm install
Rename 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
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
home
story. - Click Config and type
/
in the Real path.
Start Astro's development server:
npm run dev
Happy building!