feat(storyblok/symfony-bundle): Add config for version 1.16#1931
Merged
symfony-recipes-bot merged 1 commit intosymfony:mainfrom Jan 30, 2026
Merged
Conversation
Contributor
silasjoisten
commented
Jan 30, 2026
| Q | A |
|---|---|
| License | MIT |
| Packagist | https://packagist.org/packages/storyblok/symfony-bundle |
|
Thanks for the PR 😍 How to test these changes in your application
Diff between recipe versionsIn order to help with the review stage, I'm in charge of computing the diff between the various versions of patched recipes. storyblok/symfony-bundle0.1 vs 1.2diff --git a/storyblok/symfony-bundle/0.1/config/packages/storyblok.yaml b/storyblok/symfony-bundle/1.2/config/packages/storyblok.yaml
index 51350689..6587c268 100644
--- a/storyblok/symfony-bundle/0.1/config/packages/storyblok.yaml
+++ b/storyblok/symfony-bundle/1.2/config/packages/storyblok.yaml
@@ -2,5 +2,17 @@ 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)%'
+ # 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: true1.2 vs 1.3diff --git a/storyblok/symfony-bundle/1.2/config/routes/storyblok.yaml b/storyblok/symfony-bundle/1.3/config/routes/storyblok.yaml
index 17d9f3c2..27680df5 100644
--- a/storyblok/symfony-bundle/1.2/config/routes/storyblok.yaml
+++ b/storyblok/symfony-bundle/1.3/config/routes/storyblok.yaml
@@ -1,2 +1,5 @@
-storyblok:
- resource: '@StoryblokBundle/config/routes.php'
+storyblok_webhook:
+ resource: '@StoryblokBundle/config/routes/webhook.php'
+
+storyblok_content_type:
+ resource: '@StoryblokBundle/config/routes/content_type.php'1.3 vs 1.5diff --git a/storyblok/symfony-bundle/1.3/manifest.json b/storyblok/symfony-bundle/1.5/manifest.json
index 20e6bca5..da8130b8 100644
--- a/storyblok/symfony-bundle/1.3/manifest.json
+++ b/storyblok/symfony-bundle/1.5/manifest.json
@@ -3,7 +3,8 @@
"Storyblok\\Bundle\\StoryblokBundle": ["all"]
},
"copy-from-recipe": {
- "config/": "%CONFIG_DIR%/"
+ "config/": "%CONFIG_DIR%/",
+ "templates/": "templates/"
},
"env": {
"STORYBLOK_API_BASE_URI": "https://api.storyblok.com",
diff --git a/storyblok/symfony-bundle/1.5/templates/base.html.twig b/storyblok/symfony-bundle/1.5/templates/base.html.twig
new file mode 100644
index 00000000..8fb86e62
--- /dev/null
+++ b/storyblok/symfony-bundle/1.5/templates/base.html.twig
@@ -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>1.5 vs 1.14diff --git a/storyblok/symfony-bundle/1.5/config/packages/storyblok.yaml b/storyblok/symfony-bundle/1.14/config/packages/storyblok.yaml
index 6587c268..e6628169 100644
--- a/storyblok/symfony-bundle/1.5/config/packages/storyblok.yaml
+++ b/storyblok/symfony-bundle/1.14/config/packages/storyblok.yaml
@@ -5,9 +5,15 @@ storyblok:
# 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:
@@ -16,3 +22,9 @@ when@prod:
max_age: 3600
smax_age: 3600
must_revalidate: true
+
+ cdn:
+ cache:
+ public: true
+ max_age: 604800
+ smax_age: 604800
diff --git a/storyblok/symfony-bundle/1.5/config/routes/storyblok.yaml b/storyblok/symfony-bundle/1.14/config/routes/storyblok.yaml
index 27680df5..f1714d79 100644
--- a/storyblok/symfony-bundle/1.5/config/routes/storyblok.yaml
+++ b/storyblok/symfony-bundle/1.14/config/routes/storyblok.yaml
@@ -3,3 +3,6 @@ storyblok_webhook:
storyblok_content_type:
resource: '@StoryblokBundle/config/routes/content_type.php'
+
+storyblok_cdn:
+ resource: '@StoryblokBundle/config/routes/cdn.php'
diff --git a/storyblok/symfony-bundle/1.5/manifest.json b/storyblok/symfony-bundle/1.14/manifest.json
index da8130b8..48a74933 100644
--- a/storyblok/symfony-bundle/1.5/manifest.json
+++ b/storyblok/symfony-bundle/1.14/manifest.json
@@ -10,6 +10,7 @@
"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="
}1.14 vs 1.16diff --git a/storyblok/symfony-bundle/1.14/config/packages/storyblok.yaml b/storyblok/symfony-bundle/1.16/config/packages/storyblok.yaml
index e6628169..3f804238 100644
--- a/storyblok/symfony-bundle/1.14/config/packages/storyblok.yaml
+++ b/storyblok/symfony-bundle/1.16/config/packages/storyblok.yaml
@@ -19,6 +19,7 @@ when@prod:
controller:
cache:
public: true
+ etag: true
max_age: 3600
smax_age: 3600
must_revalidate: true
@@ -26,5 +27,6 @@ when@prod:
cdn:
cache:
public: true
+ etag: true
max_age: 604800
smax_age: 604800 |
OskarStark
approved these changes
Jan 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.