Skip to content

Commit 08b3927

Browse files
committed
fix:live preview init
Signed-off-by: Amitkanswal <amit.kanswal@contentstack.com>
1 parent addb887 commit 08b3927

File tree

3 files changed

+144
-137
lines changed

3 files changed

+144
-137
lines changed

contentstack-sdk/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ if (!!customHostBaseUrl && isValidCustomHostUrl(customHostBaseUrl)) {
3939

4040
// Setting LP if enabled
4141
ContentstackLivePreview.init({
42-
stackSdk:{...Stack, headers:{
43-
api_key: envConfig.CONTENTSTACK_API_KEY
44-
}},
42+
//@ts-ignore
43+
stackSdk: Stack,
4544
clientUrlParams:{
4645
host: envConfig.CONTENTSTACK_APP_HOST,
4746
},

0 commit comments

Comments
 (0)