mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-03-24 00:32:17 +01:00
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:
30
storyblok/symfony-bundle/1.14/config/packages/storyblok.yaml
Normal file
30
storyblok/symfony-bundle/1.14/config/packages/storyblok.yaml
Normal 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
|
||||
@@ -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'
|
||||
17
storyblok/symfony-bundle/1.14/manifest.json
Normal file
17
storyblok/symfony-bundle/1.14/manifest.json
Normal 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="
|
||||
}
|
||||
}
|
||||
19
storyblok/symfony-bundle/1.14/templates/base.html.twig
Normal file
19
storyblok/symfony-bundle/1.14/templates/base.html.twig
Normal 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>
|
||||
Reference in New Issue
Block a user