|
2 | 2 |
|
3 | 3 | return [
|
4 | 4 |
|
5 |
| - /* |
| 5 | + /* |
6 | 6 | |--------------------------------------------------------------------------
|
7 | 7 | | Storyblok Preview API key
|
8 | 8 | |--------------------------------------------------------------------------
|
|
12 | 12 | | in the editor or when debug mode is enabled.
|
13 | 13 | |
|
14 | 14 | */
|
15 |
| - 'api_preview_key' => env('STORYBLOK_PREVIEW_API_KEY'), |
| 15 | + 'api_preview_key' => env('STORYBLOK_PREVIEW_API_KEY'), |
16 | 16 |
|
17 |
| - /* |
| 17 | + /* |
18 | 18 | |--------------------------------------------------------------------------
|
19 | 19 | | Storyblok Public API key
|
20 | 20 | |--------------------------------------------------------------------------
|
|
23 | 23 | | This key is used when your website is live and debug is off.
|
24 | 24 | |
|
25 | 25 | */
|
26 |
| - 'api_public_key' => env('STORYBLOK_PUBLIC_API_KEY'), |
| 26 | + 'api_public_key' => env('STORYBLOK_PUBLIC_API_KEY'), |
27 | 27 |
|
28 |
| - /* |
| 28 | + /* |
| 29 | + |-------------------------------------------------------------------------- |
| 30 | + | Specify which Storyblok API region to use |
| 31 | + |-------------------------------------------------------------------------- |
| 32 | + | |
| 33 | + | Defaults to null which should be the original EU region |
| 34 | + | |
| 35 | + */ |
| 36 | + 'api_region' => null, |
| 37 | + |
| 38 | + /* |
29 | 39 | |--------------------------------------------------------------------------
|
30 | 40 | | Use SSL when calling the Storyblok API
|
31 | 41 | |--------------------------------------------------------------------------
|
32 | 42 | |
|
33 | 43 | | Request content from the secure https address or just http
|
34 | 44 | |
|
35 | 45 | */
|
36 |
| - 'use_ssl' => true, |
| 46 | + 'use_ssl' => true, |
37 | 47 |
|
38 |
| - /* |
| 48 | + /* |
39 | 49 | |--------------------------------------------------------------------------
|
40 | 50 | | Storyblok draft mode
|
41 | 51 | |--------------------------------------------------------------------------
|
42 | 52 | |
|
43 | 53 | | Request draft data
|
44 | 54 | |
|
45 | 55 | */
|
46 |
| - 'draft' => env('STORYBLOK_DRAFT', false), |
| 56 | + 'draft' => env('STORYBLOK_DRAFT', false), |
47 | 57 |
|
48 |
| - |
49 |
| - /* |
| 58 | + /* |
50 | 59 | |--------------------------------------------------------------------------
|
51 | 60 | | Storyblok Personal access token
|
52 | 61 | |--------------------------------------------------------------------------
|
53 | 62 | |
|
54 | 63 | | Enter your Storyblok Personal access token to access their management API
|
55 | 64 | |
|
56 | 65 | */
|
57 |
| - 'oauth_token' => env('STORYBLOK_OAUTH_TOKEN', null), |
58 |
| - |
| 66 | + 'oauth_token' => env('STORYBLOK_OAUTH_TOKEN', null), |
59 | 67 |
|
60 |
| - |
61 |
| - /* |
| 68 | + /* |
62 | 69 | |--------------------------------------------------------------------------
|
63 | 70 | | Storyblok Space ID
|
64 | 71 | |--------------------------------------------------------------------------
|
65 | 72 | |
|
66 | 73 | | Enter your Storyblok space ID for use with the management API
|
67 | 74 | |
|
68 | 75 | */
|
69 |
| - 'space_id' => env('STORYBLOK_SPACE_ID', null), |
| 76 | + 'space_id' => env('STORYBLOK_SPACE_ID', null), |
70 | 77 |
|
71 |
| - |
72 |
| - /* |
| 78 | + /* |
73 | 79 | |--------------------------------------------------------------------------
|
74 | 80 | | Storyblok debug
|
75 | 81 | |--------------------------------------------------------------------------
|
76 | 82 | |
|
77 | 83 | | Enable debug mode for Storyblok. This prints useful data to the screen.
|
78 | 84 | |
|
79 | 85 | */
|
80 |
| - 'debug' => env('STORYBLOK_DEBUG'), |
| 86 | + 'debug' => env('STORYBLOK_DEBUG'), |
81 | 87 |
|
82 |
| - /* |
| 88 | + /* |
83 | 89 | |--------------------------------------------------------------------------
|
84 | 90 | | Enable caching
|
85 | 91 | |--------------------------------------------------------------------------
|
|
89 | 95 | */
|
90 | 96 | 'cache' => env('STORYBLOK_CACHE', true),
|
91 | 97 |
|
92 |
| - /* |
| 98 | + /* |
93 | 99 | |--------------------------------------------------------------------------
|
94 | 100 | | Cache duration
|
95 | 101 | |--------------------------------------------------------------------------
|
96 | 102 | |
|
97 | 103 | | Specifies how many minutes to cache responses from Storkyblok for.
|
98 | 104 | |
|
99 | 105 | */
|
100 |
| - 'cache_duration' => env('STORYBLOK_DURATION','60'), |
| 106 | + 'cache_duration' => env('STORYBLOK_DURATION','60'), |
101 | 107 |
|
102 |
| - /* |
| 108 | + /* |
103 | 109 | |--------------------------------------------------------------------------
|
104 | 110 | | Component class namespaces
|
105 | 111 | |--------------------------------------------------------------------------
|
|
108 | 114 | | listed in the order searched and loaded.
|
109 | 115 | |
|
110 | 116 | */
|
111 |
| - 'component_class_namespace' => ['App\Storyblok\\'], |
| 117 | + 'component_class_namespace' => ['App\Storyblok\\'], |
112 | 118 |
|
113 |
| - /* |
| 119 | + /* |
114 | 120 | |--------------------------------------------------------------------------
|
115 | 121 | | View folder path
|
116 | 122 | |--------------------------------------------------------------------------
|
117 | 123 | |
|
118 | 124 | | Sets the folder where views will be stored under /resources/views
|
119 | 125 | |
|
120 | 126 | */
|
121 |
| - 'view_path' => 'storyblok.', |
| 127 | + 'view_path' => 'storyblok.', |
122 | 128 |
|
123 |
| - /* |
| 129 | + /* |
124 | 130 | |--------------------------------------------------------------------------
|
125 | 131 | | Webhook secret
|
126 | 132 | |--------------------------------------------------------------------------
|
|
129 | 135 | | https://www.storyblok.com/docs/guide/in-depth/webhooks
|
130 | 136 | |
|
131 | 137 | */
|
132 |
| - 'webhook_secret' => env('STORYBLOK_WEBHOOK_SECRET'), |
| 138 | + 'webhook_secret' => env('STORYBLOK_WEBHOOK_SECRET'), |
133 | 139 |
|
134 | 140 | /*
|
135 | 141 | |--------------------------------------------------------------------------
|
|
152 | 158 | */
|
153 | 159 | 'image_service_domain' => env('STORYBLOK_IMAGE_SERVICE_DOMAIN', 'a.storyblok.com'),
|
154 | 160 |
|
155 |
| - /* |
156 |
| - |-------------------------------------------------------------------------- |
157 |
| - | Image transformation driver |
158 |
| - |-------------------------------------------------------------------------- |
159 |
| - | |
160 |
| - | The class used for transforming images Fields / image URLs |
161 |
| - | |
162 |
| - */ |
163 |
| - 'image_transformer' => \Riclep\Storyblok\Support\ImageTransformers\Storyblok::class, |
164 |
| - |
165 |
| - /* |
166 |
| - |-------------------------------------------------------------------------- |
167 |
| - | Resolve story links in content |
168 |
| - |-------------------------------------------------------------------------- |
169 |
| - | |
170 |
| - | Resolve links to stories when using link and multi link fields, valid |
171 |
| - | settings are 'url', 'story' or false |
172 |
| - | |
173 |
| - */ |
174 |
| - 'resolve_links' => false, |
| 161 | + /* |
| 162 | + |-------------------------------------------------------------------------- |
| 163 | + | Image transformation driver |
| 164 | + |-------------------------------------------------------------------------- |
| 165 | + | |
| 166 | + | The class used for transforming images Fields / image URLs |
| 167 | + | |
| 168 | + */ |
| 169 | + 'image_transformer' => \Riclep\Storyblok\Support\ImageTransformers\Storyblok::class, |
| 170 | + |
| 171 | + /* |
| 172 | + |-------------------------------------------------------------------------- |
| 173 | + | Resolve story links in content |
| 174 | + |-------------------------------------------------------------------------- |
| 175 | + | |
| 176 | + | Resolve links to stories when using link and multi link fields, valid |
| 177 | + | settings are 'url', 'story' or false |
| 178 | + | |
| 179 | + */ |
| 180 | + 'resolve_links' => false, |
175 | 181 |
|
176 | 182 | /*
|
177 | 183 | |--------------------------------------------------------------------------
|
|
193 | 199 | */
|
194 | 200 | 'live_element' => '.storyblok-live',
|
195 | 201 |
|
196 |
| - /* |
197 |
| - |-------------------------------------------------------------------------- |
198 |
| - | Name of the field to be used for settings |
199 |
| - |-------------------------------------------------------------------------- |
200 |
| - | |
201 |
| - | Set the field name to be used to store the generic settings components |
202 |
| - | |
203 |
| - */ |
204 |
| - 'settings_field' => 'settings', |
| 202 | + /* |
| 203 | + |-------------------------------------------------------------------------- |
| 204 | + | Name of the field to be used for settings |
| 205 | + |-------------------------------------------------------------------------- |
| 206 | + | |
| 207 | + | Set the field name to be used to store the generic settings components |
| 208 | + | |
| 209 | + */ |
| 210 | + 'settings_field' => 'settings', |
205 | 211 | ];
|
0 commit comments