Skip to content

Commit a1a8644

Browse files
committed
CMS-45730 Rename OPTIMIZELY_CMS_HOST to OPTIMIZELY_CMS_URL in env.example and update page.tsx to use the new variable
1 parent abd0c8e commit a1a8644

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/alloy-template/env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ OPTIMIZELY_CMS_CLIENT_ID=
88
OPTIMIZELY_CMS_CLIENT_SECRET=
99

1010
# Root CMS instance. For example "https://<something>.cms.optimizely.com"
11-
OPTIMIZELY_CMS_HOST=
11+
OPTIMIZELY_CMS_URL=
1212
# From here, all environmental variables are optional
1313
#
1414
# Endpoint of GraphQL. Use this variable if you use a non-production instance or a different version

templates/alloy-template/src/app/preview/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default async function Page({ searchParams }: Props) {
2626
return (
2727
<>
2828
<Script
29-
src={`${process.env.OPTIMIZELY_CMS_HOST}/util/javascript/communicationinjector.js`}
29+
src={`${process.env.OPTIMIZELY_CMS_URL}/util/javascript/communicationinjector.js`}
3030
></Script>
3131
<PreviewComponent />
3232
<OptimizelyComponent opti={response} />

0 commit comments

Comments
 (0)