feat: storyblok/symfony-bundle 1.2.0 recipes (#1785)

This commit is contained in:
Silas Joisten
2025-04-30 18:01:00 +03:00
committed by GitHub
parent 06fdc1b36e
commit 14d608eedd
3 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
storyblok:
base_uri: '%env(STORYBLOK_API_BASE_URI)%'
token: '%env(STORYBLOK_API_TOKEN)%'
# version: '%env(STORYBLOK_VERSION)%'
# assets_token: '%env(STORYBLOK_ASSETS_API_TOKEN)%'
# webhook_secret: '%env(STORYBLOK_WEBHOOK_SECRET)%'
# auto_resolve_relations: true
# controller:
# ascending_redirect_fallback: true
when@prod:
storyblok:
controller:
cache:
public: true
max_age: 3600
smax_age: 3600
must_revalidate: true

View File

@@ -0,0 +1,2 @@
storyblok:
resource: '@StoryblokBundle/config/routes.php'

View File

@@ -0,0 +1,15 @@
{
"bundles": {
"Storyblok\\Bundle\\StoryblokBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"STORYBLOK_API_BASE_URI": "https://api.storyblok.com",
"STORYBLOK_API_TOKEN": "",
"#1": "STORYBLOK_VERSION=",
"#2": "STORYBLOK_ASSETS_API_TOKEN=",
"#3": "STORYBLOK_WEBHOOK_SECRET="
}
}