You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The module makes it easy to do delivery client api calls via the [Kentico Cloud Delivery SDK](https://github.com/Enngage/kentico-cloud-js/blob/master/packages/delivery/README.md).
10
+
The module makes it easy to do delivery client api calls via the [Kentico kontent Delivery SDK](https://github.com/Kentico/kentico-kontent-js/tree/master/packages/delivery/README.md).
11
11
12
12
## Quick start
13
13
- Install via npm
14
14
15
15
```
16
-
npm i kenticocloud-nuxt-module --save
17
-
npm i rxjs --save (because this is a peer dependency of the Kentico Cloud Delivery SDK)
16
+
npm i kentico-kontent-nuxt-module --save
17
+
npm i rxjs --save (because this is a peer dependency of the Kentico Kontent Delivery SDK)
18
18
19
19
```
20
20
21
-
- Add `kenticocloud-nuxt-module` to `modules` section of `nuxt.config.js`
21
+
- Add `kentico-kontent-nuxt-module` to `modules` section of `nuxt.config.js`
@@ -49,7 +49,7 @@ npm i rxjs --save (because this is a peer dependency of the Kentico Cloud Delive
49
49
50
50
```
51
51
## Note:
52
-
By default Nuxt can only work with promises. Therefor you always use the "toPromise" method provided by the Kentico Cloud Delivery SDK! RxJs operator's are not supported at the moment.
52
+
By default Nuxt can only work with promises. Therefor you always use the "toPromise" method provided by the Kentico Kontent Delivery SDK! RxJs operator's are not supported at the moment.
53
53
54
54
## Caching
55
55
API calls can be "cached" (they will be stored in memory) client side via the "viaCache" method.
@@ -64,22 +64,22 @@ API calls can be "cached" (they will be stored in memory) client side via the "v
64
64
65
65
## Extending
66
66
67
-
If you need to customize the Kentico Cloud Delivery SDK by registering interceptors and changing global config, you have to create a nuxt plugin.
67
+
If you need to customize the Kentico Kontent Delivery SDK by registering interceptors and changing global config, you have to create a nuxt plugin.
68
68
69
69
### nuxt.config.js
70
70
```
71
71
{
72
72
modules: [
73
-
'kenticocloud-nuxt-module',
73
+
'kentico-kontent-nuxt-module',
74
74
],
75
75
76
76
plugins: [
77
-
'~/plugins/kenticocloudNuxtModule'
77
+
'~/plugins/kenticokontentNuxtModule'
78
78
]
79
79
}
80
80
```
81
81
82
-
### plugins/kenticocloudNuxtModule.js
82
+
### plugins/kenticokontentNuxtModule.js
83
83
```
84
84
export default function ({ store, $deliveryClient }) {
0 commit comments