Skip to content

Commit

Permalink
Skip site info fetch on XM Cloud rendering/editing host builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ambrauer committed Oct 31, 2023
1 parent b4a4779 commit 5eea132
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,14 @@ class MultisitePlugin implements ConfigPlugin {

const endpoint = config.sitecoreEdgeContextId ? config.sitecoreEdgeUrl : config.graphQLEndpoint;

if (!endpoint) {
console.warn(chalk.yellow('Skipping site information fetch (missing GraphQL endpoint).'));
if (!endpoint || process.env.SITECORE) {
console.warn(
chalk.yellow(
`Skipping site information fetch (${
!endpoint ? 'missing GraphQL endpoint' : 'building on XM Cloud'
})`
)
);
} else {
console.log(`Fetching site information from ${endpoint}`);

Expand Down

0 comments on commit 5eea132

Please sign in to comment.