We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e36896 commit fe4e668Copy full SHA for fe4e668
lib/contentstackClient.js
@@ -31,7 +31,7 @@ export default function contentstackClient ({ http }) {
31
32
if (region && region !== Region.NA) {
33
baseUrlPath = `https://${region}-api.contentstack.com:443/v3/user-session`
34
- } else if (!region && http.defaults.host) {
+ } else if (!region && http?.defaults?.host) {
35
baseUrlPath = `https://${http.defaults.host}:443/v3/user-session`
36
} else {
37
baseUrlPath = `https://api.contentstack.io:443/v3/user-session`
0 commit comments