feat(storyblok): Update recipe for storyblok/symfony-bundle:^1.14 (#1927)

* feat(storyblok): Update recipe for `storyblok/symfony-bundle:^1.14`

* Fix

* Fix

* Fix
This commit is contained in:
Silas Joisten
2026-01-23 17:35:10 +02:00
committed by GitHub
parent d28010a793
commit 41f6eaac15
4 changed files with 74 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
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
# auto_resolve_links: true
# controller:
# ascending_redirect_fallback: true
cdn:
storage:
type: filesystem
path: '%env(resolve:STORYBLOK_CDN_STORAGE_PATH)%'
when@prod:
storyblok:
controller:
cache:
public: true
max_age: 3600
smax_age: 3600
must_revalidate: true
cdn:
cache:
public: true
max_age: 604800
smax_age: 604800

View File

@@ -0,0 +1,8 @@
storyblok_webhook:
resource: '@StoryblokBundle/config/routes/webhook.php'
storyblok_content_type:
resource: '@StoryblokBundle/config/routes/content_type.php'
storyblok_cdn:
resource: '@StoryblokBundle/config/routes/cdn.php'

View File

@@ -0,0 +1,17 @@
{
"bundles": {
"Storyblok\\Bundle\\StoryblokBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/",
"templates/": "templates/"
},
"env": {
"STORYBLOK_API_BASE_URI": "https://api.storyblok.com",
"STORYBLOK_API_TOKEN": "",
"STORYBLOK_VERSION": "draft",
"STORYBLOK_CDN_STORAGE_PATH": "%kernel.project_dir%/var/cdn",
"#1": "STORYBLOK_ASSETS_API_TOKEN=",
"#2": "STORYBLOK_WEBHOOK_SECRET="
}
}

View File

@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>{% block title %}Welcome!{% endblock %}</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
{% block stylesheets %}
{% endblock %}
{% block javascripts %}
{% endblock %}
</head>
<body>
{% block body %}{% endblock %}
{% block storyblok_scripts %}
{{ storyblok_js_bridge_scripts() }}
{% endblock %}
</body>
</html>