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 1
1
## Change log
2
2
3
+ ### Version: 4.0.5
4
+ #### Date: July-30-2024
5
+ Fix: Live preview endpoint issue
6
+
3
7
### Version: 4.0.5
4
8
#### Date: July-23-2024
5
9
Dependecy updates
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @contentstack/delivery-sdk" ,
3
- "version" : " 4.0.5 " ,
3
+ "version" : " 4.0.6 " ,
4
4
"type" : " commonjs" ,
5
5
"main" : " ./dist/cjs/src/index.js" ,
6
6
"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 {
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