File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -42,11 +42,9 @@ export function stack(config: StackConfig): StackClass {
42
42
43
43
if ( config . live_preview ?. enable === true ) {
44
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
45
+ config . host = config . live_preview . host
47
46
} else if ( config . live_preview ?. preview_token != null && config . live_preview ?. management_token == null ) {
48
- config . host = 'rest-preview.contentstack.com'
49
- config . live_preview . host = config . host
47
+ config . host = config . live_preview . host
50
48
}
51
49
} else {
52
50
defaultConfig . defaultHostname = config . host ? config . host : getHost ( config . region , config . host ) ;
You can’t perform that action at this time.
0 commit comments