File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 11## Change log
22
3+ ### Version: 4.0.5
4+ #### Date: July-30-2024
5+ Fix: Live preview endpoint issue
6+
37### Version: 4.0.5
48#### Date: July-23-2024
59Dependecy updates
Original file line number Diff line number Diff line change 11{
22 "name" : " @contentstack/delivery-sdk" ,
3- "version" : " 4.0.5 " ,
3+ "version" : " 4.0.6 " ,
44 "type" : " commonjs" ,
55 "main" : " ./dist/cjs/src/index.js" ,
66 "types" : " ./dist/types/src/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -42,11 +42,9 @@ export function stack(config: StackConfig): StackClass {
4242
4343 if ( config . live_preview ?. enable === true ) {
4444 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
4746 } 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
5048 }
5149 } else {
5250 defaultConfig . defaultHostname = config . host ? config . host : getHost ( config . region , config . host ) ;
You can’t perform that action at this time.
0 commit comments