We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c66bad7 commit de147b7Copy full SHA for de147b7
1 file changed
src/sdk/entry.ts
@@ -1,3 +1,4 @@
1
+/* eslint-disable @typescript-eslint/ban-ts-comment */
2
import * as Utils from "@contentstack/utils";
3
import ContentstackLivePreview from "@contentstack/live-preview-utils";
4
import {
@@ -39,12 +40,8 @@ if (customHostBaseUrl && isValidCustomHostUrl(customHostBaseUrl)) {
39
40
41
// Setting LP if enabled
42
ContentstackLivePreview.init({
- stackSdk: {
43
- ...Stack,
44
- headers: {
45
- api_key: REACT_APP_CONTENTSTACK_API_KEY as string,
46
- },
47
+ //@ts-ignore
+ stackSdk: Stack,
48
clientUrlParams:{
49
host: REACT_APP_CONTENTSTACK_APP_HOST
50
}
0 commit comments