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
  • Loading branch information
yavorsk authored Nov 4, 2024
1 parent 0065e93 commit 2674d45
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 @@ -98,6 +98,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 2674d45

Please sign in to comment.