6a5bdb5d80
* Updates the `cms-kontent` example `Image` component to implement the suggested improvements from @styfle in #37188. * Simplifies the Kontent loader host checking. * Reduces the default image quality to from `100` to `75`. * Add `tslib` dependency to fix `Module not found: Can't resolve 'tslib'` error when importing `transformImageUrl` in the `Image` component. It looks like this might be a bug in v11 of the Kontent Delivery SDK, as it appears `tslib` needs to be included as dependency, rather than dev dependency. I missed this originally as the example runs fine in the Next repo as the root `yarn.lock` has `tslib`. It's only when the example is used via `yarn create next-app` that the issue occurs. We can likely remove this in future alongside an upgrade to the SDK package once this issue has been fixed and released there. https://github.com/vercel/next.js/pull/37188
25 lines
525 B
JSON
25 lines
525 B
JSON
{
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next",
|
|
"build": "next build",
|
|
"start": "next start"
|
|
},
|
|
"dependencies": {
|
|
"@kentico/kontent-delivery": "^11.13.0",
|
|
"classnames": "2.3.1",
|
|
"date-fns": "2.28.0",
|
|
"gray-matter": "4.0.3",
|
|
"next": "latest",
|
|
"react": "^18.1.0",
|
|
"react-dom": "^18.1.0",
|
|
"remark": "14.0.2",
|
|
"remark-html": "15.0.1"
|
|
},
|
|
"devDependencies": {
|
|
"autoprefixer": "10.4.7",
|
|
"postcss": "8.4.14",
|
|
"tailwindcss": "^3.0.15",
|
|
"tslib": "2.4.0"
|
|
}
|
|
}
|