@storyblok/nuxt 3.0.0 â 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -6
- package/module/plugin.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
<a href="https://www.storyblok.com?utm_source=github.com&utm_medium=readme&utm_campaign=storyblok-nuxt" align="center">
|
|
3
3
|
<img src="https://a.storyblok.com/f/88751/1776x360/b8979e5c96/sb-nuxt.png" alt="Storyblok Logo">
|
|
4
4
|
</a>
|
|
5
|
-
<h1 align="center"
|
|
6
|
-
<p align="center">Nuxt module for the <a href="http://www.storyblok.com?utm_source=github.com&utm_medium=readme&utm_campaign=storyblok-nuxt" target="_blank">Storyblok</a>, Headless CMS.</p> <br />
|
|
5
|
+
<h1 align="center">@storyblok/nuxt</h1>
|
|
6
|
+
<p align="center">Nuxt 2 module for the <a href="http://www.storyblok.com?utm_source=github.com&utm_medium=readme&utm_campaign=storyblok-nuxt" target="_blank">Storyblok</a>, Headless CMS.</p> <br />
|
|
7
7
|
</div>
|
|
8
8
|
|
|
9
9
|
<p align="center">
|
|
@@ -27,10 +27,12 @@
|
|
|
27
27
|
</a>
|
|
28
28
|
</p>
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
> Try out the **[LIVE DEMO](https://stackblitz.com/edit/nuxt-2-sdk-demo?file=pages%2Findex.vue&terminal=dev)** on Stackblitz and play with code yourself!
|
|
31
31
|
|
|
32
32
|
## đ Usage
|
|
33
33
|
|
|
34
|
+
_Note: This module is for Nuxt 2. [Check out `@storyblok/nuxt-beta` for Nuxt 3](https://github.com/storyblok/storyblok-nuxt-beta)_.
|
|
35
|
+
|
|
34
36
|
> If you are first-time user of the Storyblok, read the [Getting Started](https://www.storyblok.com/docs/guide/getting-started?utm_source=github.com&utm_medium=readme&utm_campaign=storyblok-nuxt) guide to get a project ready in less than 5 minutes.
|
|
35
37
|
|
|
36
38
|
### Installation
|
|
@@ -62,7 +64,7 @@ When you initialize the module, you can pass all [_@storyblok/vue_ options](http
|
|
|
62
64
|
["@storyblok/nuxt/module", {
|
|
63
65
|
{
|
|
64
66
|
accessToken: "<your-access-token>",
|
|
65
|
-
bridge:
|
|
67
|
+
bridge: true,
|
|
66
68
|
apiOptions: {}, // storyblok-js-client options
|
|
67
69
|
useApiClient: true
|
|
68
70
|
}
|
|
@@ -186,8 +188,9 @@ Equivalent to the client that `useStoryblokApi` returns, but accessible in the N
|
|
|
186
188
|
|
|
187
189
|
## đ Related Links
|
|
188
190
|
|
|
189
|
-
- **[
|
|
190
|
-
- **[
|
|
191
|
+
- **[Live Demo on Stackblitz](https://stackblitz.com/edit/nuxt-2-sdk-demo?file=pages%2Findex.vue&terminal=dev)**
|
|
192
|
+
- **[Nuxt.js Hub](https://www.storyblok.com/tc/nuxtjs?utm_source=github.com&utm_medium=readme&utm_campaign=storyblok-nuxt)**: Learn how to develop your own Nuxt.js applications that use Storyblok APIs to retrieve and manage content.
|
|
193
|
+
- **[Storyblok & Nuxt.js on GitHub](https://github.com/search?q=org%3Astoryblok+topic%3Anuxt)**: Check all of our Nuxt.js open source repos.
|
|
191
194
|
- **[Storyblok CLI](https://github.com/storyblok/storyblok)**: A simple CLI for scaffolding Storyblok projects and fieldtypes.
|
|
192
195
|
|
|
193
196
|
## âšī¸ More Resources
|
package/module/plugin.js
CHANGED
|
@@ -11,7 +11,7 @@ export default (ctx) => {
|
|
|
11
11
|
|
|
12
12
|
Vue.use(StoryblokVue, {
|
|
13
13
|
accessToken: "<%= options.accessToken %>",
|
|
14
|
-
bridge: <%=
|
|
14
|
+
bridge: <%= typeof options.bridge === "undefined" ? true : options.bridge %>,
|
|
15
15
|
apiOptions: <%- JSON.stringify(options.apiOptions || {}) %>,
|
|
16
16
|
<% if (options.useApiClient !== false) { %>
|
|
17
17
|
use: [apiPlugin]
|