From 14d608eeddcfa11d85f681fd5a95d244ef3ff437 Mon Sep 17 00:00:00 2001 From: Silas Joisten Date: Wed, 30 Apr 2025 18:01:00 +0300 Subject: [PATCH] feat: `storyblok/symfony-bundle` `1.2.0` recipes (#1785) --- .../1.2/config/packages/storyblok.yaml | 18 ++++++++++++++++++ .../1.2/config/routes/storyblok.yaml | 2 ++ storyblok/symfony-bundle/1.2/manifest.json | 15 +++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 storyblok/symfony-bundle/1.2/config/packages/storyblok.yaml create mode 100644 storyblok/symfony-bundle/1.2/config/routes/storyblok.yaml create mode 100644 storyblok/symfony-bundle/1.2/manifest.json diff --git a/storyblok/symfony-bundle/1.2/config/packages/storyblok.yaml b/storyblok/symfony-bundle/1.2/config/packages/storyblok.yaml new file mode 100644 index 00000000..e624a3a5 --- /dev/null +++ b/storyblok/symfony-bundle/1.2/config/packages/storyblok.yaml @@ -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 diff --git a/storyblok/symfony-bundle/1.2/config/routes/storyblok.yaml b/storyblok/symfony-bundle/1.2/config/routes/storyblok.yaml new file mode 100644 index 00000000..17d9f3c2 --- /dev/null +++ b/storyblok/symfony-bundle/1.2/config/routes/storyblok.yaml @@ -0,0 +1,2 @@ +storyblok: + resource: '@StoryblokBundle/config/routes.php' diff --git a/storyblok/symfony-bundle/1.2/manifest.json b/storyblok/symfony-bundle/1.2/manifest.json new file mode 100644 index 00000000..4682ead2 --- /dev/null +++ b/storyblok/symfony-bundle/1.2/manifest.json @@ -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=" + } +}