We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 040b54f commit ef2c357Copy full SHA for ef2c357
1 file changed
packages/contentstack-bootstrap/src/bootstrap/utils.ts
@@ -190,10 +190,14 @@ const envFileHandler = async (
190
if (regionName !== 'eu' && !isUSRegion) {
191
customHost = region?.cma?.substring(8);
192
}
193
- let graphqlHost = "graphql.contentstack.com";
194
- if(regionName != 'na'){
195
- graphqlHost = `${regionName}-.graphql.contentstack.com`;
196
- }
+ const getGraphqlHost = (name?: string): string => {
+ const r = name?.toLowerCase();
+ if (!r || r === 'na' || r === 'aws-na') {
+ return 'graphql.contentstack.com';
197
+ }
198
+ return `${r}-graphql.contentstack.com`;
199
+ };
200
+ const graphqlHost = getGraphqlHost(regionName);
201
202
203
// Construct image hostname based on the actual host being used
0 commit comments