Skip to content

Commit 7e1705f

Browse files
authored
feat(storyblok/symfony-bundle): Add config for version 1.16 (#1931)
1 parent 90e1820 commit 7e1705f

File tree

4 files changed

+76
-0
lines changed

4 files changed

+76
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
storyblok:
2+
base_uri: '%env(STORYBLOK_API_BASE_URI)%'
3+
token: '%env(STORYBLOK_API_TOKEN)%'
4+
version: '%env(STORYBLOK_VERSION)%'
5+
# assets_token: '%env(STORYBLOK_ASSETS_API_TOKEN)%'
6+
# webhook_secret: '%env(STORYBLOK_WEBHOOK_SECRET)%'
7+
# auto_resolve_relations: true
8+
# auto_resolve_links: true
9+
# controller:
10+
# ascending_redirect_fallback: true
11+
12+
cdn:
13+
storage:
14+
type: filesystem
15+
path: '%env(resolve:STORYBLOK_CDN_STORAGE_PATH)%'
16+
17+
when@prod:
18+
storyblok:
19+
controller:
20+
cache:
21+
public: true
22+
etag: true
23+
max_age: 3600
24+
smax_age: 3600
25+
must_revalidate: true
26+
27+
cdn:
28+
cache:
29+
public: true
30+
etag: true
31+
max_age: 604800
32+
smax_age: 604800
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
storyblok_webhook:
2+
resource: '@StoryblokBundle/config/routes/webhook.php'
3+
4+
storyblok_content_type:
5+
resource: '@StoryblokBundle/config/routes/content_type.php'
6+
7+
storyblok_cdn:
8+
resource: '@StoryblokBundle/config/routes/cdn.php'
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"bundles": {
3+
"Storyblok\\Bundle\\StoryblokBundle": ["all"]
4+
},
5+
"copy-from-recipe": {
6+
"config/": "%CONFIG_DIR%/",
7+
"templates/": "templates/"
8+
},
9+
"env": {
10+
"STORYBLOK_API_BASE_URI": "https://api.storyblok.com",
11+
"STORYBLOK_API_TOKEN": "",
12+
"STORYBLOK_VERSION": "draft",
13+
"STORYBLOK_CDN_STORAGE_PATH": "%kernel.project_dir%/var/cdn",
14+
"#1": "STORYBLOK_ASSETS_API_TOKEN=",
15+
"#2": "STORYBLOK_WEBHOOK_SECRET="
16+
}
17+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>{% block title %}Welcome!{% endblock %}</title>
6+
<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>">
7+
{% block stylesheets %}
8+
{% endblock %}
9+
10+
{% block javascripts %}
11+
{% endblock %}
12+
</head>
13+
<body>
14+
{% block body %}{% endblock %}
15+
{% block storyblok_scripts %}
16+
{{ storyblok_js_bridge_scripts() }}
17+
{% endblock %}
18+
</body>
19+
</html>

0 commit comments

Comments
 (0)