Skip to content

Commit cdba736

Browse files
authored
Merge pull request #34 from 21TORR/update-storyblok
Update storyblok env
2 parents 0e20d86 + c44dbd9 commit cdba736

1 file changed

Lines changed: 24 additions & 1 deletion

File tree

docs/php/symfony/storyblok/index.mdx

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,30 @@ This bundle provides helpers for
1818

1919
## Installation
2020

21-
Install the package:
21+
You need to define various environment variables:
22+
23+
```dotenv
24+
# your space id as number
25+
STORYBLOK_SPACE_ID=
26+
27+
# your management token
28+
STORYBLOK_MANAGEMENT_TOKEN=
29+
30+
# your content token – with `preview` scope
31+
STORYBLOK_CONTENT_TOKEN=
32+
```
33+
34+
Then add the base config in `config/packages/storyblok.yaml`:
35+
36+
```yaml
37+
storyblok:
38+
space_id: "%env(STORYBLOK_SPACE_ID)%"
39+
management_token: "%env(STORYBLOK_MANAGEMENT_TOKEN)%"
40+
content_token: "%env(STORYBLOK_CONTENT_TOKEN)%"
41+
```
42+
43+
44+
Then install the package:
2245
2346
```shell
2447
composer require 21torr/storyblok

0 commit comments

Comments
 (0)