Skip to content

Commit

Permalink
[Next.js][Context] Provide custom sitecoreEdgeUrl to Events sdk (#1661)
Browse files Browse the repository at this point in the history
  • Loading branch information
illiakovalenko authored Nov 13, 2023
1 parent 1385bba commit 2b9107c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const sdkModule: SDK<typeof Events> = {

await Events.init({
siteName: props.siteName,
sitecoreEdgeUrl: props.sitecoreEdgeUrl,
sitecoreEdgeContextId: props.sitecoreEdgeContextId,
// Replace with the top level cookie domain of the website that is being integrated e.g ".example.com" and not "www.example.com"
cookieDomain: window.location.hostname.replace(/^www\./, ''),
Expand Down

0 comments on commit 2b9107c

Please sign in to comment.