diff --git a/storyblok/symfony-bundle/1.16/config/packages/storyblok.yaml b/storyblok/symfony-bundle/1.16/config/packages/storyblok.yaml new file mode 100644 index 000000000..3f804238c --- /dev/null +++ b/storyblok/symfony-bundle/1.16/config/packages/storyblok.yaml @@ -0,0 +1,32 @@ +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 + etag: true + max_age: 3600 + smax_age: 3600 + must_revalidate: true + + cdn: + cache: + public: true + etag: true + max_age: 604800 + smax_age: 604800 diff --git a/storyblok/symfony-bundle/1.16/config/routes/storyblok.yaml b/storyblok/symfony-bundle/1.16/config/routes/storyblok.yaml new file mode 100644 index 000000000..f1714d794 --- /dev/null +++ b/storyblok/symfony-bundle/1.16/config/routes/storyblok.yaml @@ -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' diff --git a/storyblok/symfony-bundle/1.16/manifest.json b/storyblok/symfony-bundle/1.16/manifest.json new file mode 100644 index 000000000..48a749333 --- /dev/null +++ b/storyblok/symfony-bundle/1.16/manifest.json @@ -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=" + } +} diff --git a/storyblok/symfony-bundle/1.16/templates/base.html.twig b/storyblok/symfony-bundle/1.16/templates/base.html.twig new file mode 100644 index 000000000..8fb86e626 --- /dev/null +++ b/storyblok/symfony-bundle/1.16/templates/base.html.twig @@ -0,0 +1,19 @@ + + +
+ +