Skip to content

Commit de147b7

Browse files
fix: live preview fix
Signed-off-by: Amitkanswal <amit.kanswal@contentstack.com>
1 parent c66bad7 commit de147b7

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/sdk/entry.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/ban-ts-comment */
12
import * as Utils from "@contentstack/utils";
23
import ContentstackLivePreview from "@contentstack/live-preview-utils";
34
import {
@@ -39,12 +40,8 @@ if (customHostBaseUrl && isValidCustomHostUrl(customHostBaseUrl)) {
3940

4041
// Setting LP if enabled
4142
ContentstackLivePreview.init({
42-
stackSdk: {
43-
...Stack,
44-
headers: {
45-
api_key: REACT_APP_CONTENTSTACK_API_KEY as string,
46-
},
47-
},
43+
//@ts-ignore
44+
stackSdk: Stack,
4845
clientUrlParams:{
4946
host: REACT_APP_CONTENTSTACK_APP_HOST
5047
}

0 commit comments

Comments
 (0)