Skip to content

Commit

Permalink
moved to propsLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
asanehisa committed Oct 5, 2023
1 parent 3ecb2f1 commit 00d6200
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions packages/pages/src/dev/server/ssr/getLocalData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,6 @@ const getLocalData = async (
)
.toString()
);
data.siteInternalHostName = process.env.YEXT_PAGES_SCOPE;

if (criterion(data)) {
return data;
}
Expand Down
1 change: 1 addition & 0 deletions packages/pages/src/dev/server/ssr/propsLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const propsLoader = async ({
`Could not find document data for entityId and locale: ${entityId} ${locale}`
);
}
document.siteInternalHostName = process.env.YEXT_PAGES_SCOPE;

let templateProps: TemplateProps = {
document: document,
Expand Down

0 comments on commit 00d6200

Please sign in to comment.