Skip to content

Commit 3eb708a

Browse files
committed
Chnaged the name of the contextID
1 parent df088e3 commit 3eb708a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

headapps/Sugcon2024/src/lib/middleware/plugins/personalize.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ class PersonalizePlugin implements MiddlewarePlugin {
3232
},
3333
// Configuration for your Sitecore CDP endpoint
3434
cdpConfig: {
35-
sitecoreEdgeContextId: process.env.NEXT_PUBLIC_CDP_CONTEXT_ID
36-
? process.env.NEXT_PUBLIC_CDP_CONTEXT_ID
35+
sitecoreEdgeContextId: process.env.SITECORE_EDGE_CONTEXT_ID
36+
? process.env.SITECORE_EDGE_CONTEXT_ID
3737
: (() => {
3838
throw new Error(
39-
'Environment variable NEXT_PUBLIC_CDP_CONTEXT_ID is required but not set.'
39+
'Environment variable SITECORE_EDGE_CONTEXT_ID is required but not set.'
4040
);
4141
})(),
4242
sitecoreEdgeUrl:

0 commit comments

Comments
 (0)