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
Add Kentico Kontent super power to your nuxt app:fire:
7
7
8
8
## Features
9
9
@@ -20,7 +20,7 @@ npm i rxjs --save (because this is a peer dependency of the Kentico Kontent Deli
20
20
21
21
- Add `kentico-kontent-nuxt-module` to `modules` section of `nuxt.config.js`
22
22
23
-
```js
23
+
```json
24
24
/*
25
25
** Nuxt.js modules
26
26
*/
@@ -40,6 +40,9 @@ npm i rxjs --save (because this is a peer dependency of the Kentico Kontent Deli
40
40
enableSecuredMode: true
41
41
},
42
42
```
43
+
> Note: See [the client configuration section](https://github.com/Kentico/kontent-delivery-sdk-js/blob/master/DOCS.md#client-configuration) of the Kentico Kontent Delivery SDK for all available configuration options.
44
+
45
+
43
46
- $deliveryClient is now globally available.
44
47
45
48
```javascript
@@ -53,6 +56,25 @@ npm i rxjs --save (because this is a peer dependency of the Kentico Kontent Deli
53
56
### Note:
54
57
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.
55
58
59
+
# Typescript
60
+
61
+
Since version 7 the kentico-kontent-nuxt-module has typescript support!
62
+
63
+
Add the types to your "types" array in tsconfig.json after the @nuxt/types (Nuxt 2.9.0+) or @nuxt/vue-app entry
64
+
65
+
```json
66
+
67
+
{
68
+
"compilerOptions": {
69
+
"types": [
70
+
"@nuxt/types",
71
+
"kentico-kontent-nuxt-module"
72
+
]
73
+
}
74
+
}
75
+
76
+
```
77
+
56
78
## Generating
57
79
When using a static generated deployment you may need to use the [items-feed](https://docs.kontent.ai/reference/api-changelog#a-delivery-api-limitation) endpoint when generating your site (because the items endpoint has a rate limitation).
58
80
@@ -68,6 +90,7 @@ When using a static generated deployment you may need to use the [items-feed](ht
68
90
API calls can be "cached" (they will be stored in memory) client side via the "viaCache" method.
logger.error(`You need to provide ${chalk.yellow('projectId')} to set up Kentico Kontent. See 👉 https://github.com/Domitnator/kentico-kontent-nuxt-module for more info.`)
0 commit comments