We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d3779f commit 8c25b04Copy full SHA for 8c25b04
1 file changed
src/lib/contentstack.ts
@@ -42,11 +42,9 @@ export function stack(config: StackConfig): StackClass {
42
43
if (config.live_preview?.enable === true) {
44
if (config.live_preview?.management_token != null && config.live_preview?.preview_token == null) {
45
- config.host = 'api.contentstack.io'
46
- config.live_preview.host = config.host
+ config.host = config.live_preview.host
47
} else if (config.live_preview?.preview_token != null && config.live_preview?.management_token == null) {
48
- config.host = 'rest-preview.contentstack.com'
49
50
}
51
} else {
52
defaultConfig.defaultHostname = config.host ? config.host : getHost(config.region, config.host);
0 commit comments