Skip to content

Commit

Permalink
[Chore][nextjs] Install sharp dependency for nextjs apps (#1859)
Browse files Browse the repository at this point in the history
  • Loading branch information
art-alexeyenko authored Jul 26, 2024
1 parent eb3429b commit 6d3b039
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ Our versioning strategy is as follows:

* Update node/types to version 20 in all packages and samples ([#1810](https://github.com/Sitecore/jss/pull/1810))
* Github - Teams integration ([#1823](https://github.com/Sitecore/jss/pull/1823))
* [nextjs] Add `sharp` dependency to be in-line with nextjs's Image Optimizaion best practices: https://nextjs.org/docs/messages/install-sharp

## 22.0.0

Expand Down
3 changes: 3 additions & 0 deletions docs/upgrades/unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@
...
```

* It's highly recommended to install `sharp` dependency version `0.32.6` for nextjs apps in order to improve memory usage of Image Optimization feature. Run the `npm` command to install it:
`npm i [email protected]`

# nextjs-xmcloud

* Render a new `EditingScripts` component in your `Scripts.ts` file to support a new Editing Integration feature.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"next": "^14.1.0",
"next-localization": "^0.12.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react-dom": "^18.2.0",
"sharp": "0.32.6"
},
"devDependencies": {
"@graphql-codegen/cli": "^5.0.0",
Expand Down

0 comments on commit 6d3b039

Please sign in to comment.