Skip to content

Commit

Permalink
[nextjs][xmcloud] Introduce property enablePersonalizeCookie to Per…
Browse files Browse the repository at this point in the history
…sonalizeMiddlewareConfig (#1963)

* pass setPersonalizeCookie by default in personalize-middleware

(cherry picked from commit 2674d45)
  • Loading branch information
yavorsk authored and art-alexeyenko committed Nov 4, 2024
1 parent d56b18a commit 92ee544
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Our versioning strategy is as follows:
* `[templates/nextjs-xmcloud]` `@sitecore/components` dependency has been updated to 2.0.0 ([#1933](https://github.com/Sitecore/jss/pull/1933))
* `[templates/nextjs-xmcloud]` `lib/context` import has been removed. Values from `temp/config` can be used instead. ([#1933](https://github.com/Sitecore/jss/pull/1933))
* `[sitecore-jss-nextjs]` `Context` import and `@sitecore-jss/sitecore-jss-nextjs/context` submodule have been removed. ([#1933](https://github.com/Sitecore/jss/pull/1933))
* `[sitecore-jss-nextjs]` update personalize-middleware for CloudSDK 0.4.0 - pass `enablePersonalizeCookie` to CloudSDK.addPersonalize() function ([#1963](https://github.com/Sitecore/jss/pull/1963))

## 22.1.4

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ class PersonalizePlugin implements MiddlewarePlugin {
order = 1;

constructor() {

this.personalizeMiddleware = new PersonalizeMiddleware({
// Configuration for your Sitecore Experience Edge endpoint
edgeConfig: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export class PersonalizeMiddleware extends MiddlewareBase {
cookieDomain: hostname,
enableServerCookie: true,
})
.addPersonalize()
.addPersonalize({ enablePersonalizeCookie: true })
.initialize();
}

Expand Down

0 comments on commit 92ee544

Please sign in to comment.