We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0422909 commit 2a5c310Copy full SHA for 2a5c310
src/sdk/utils.ts
@@ -27,7 +27,7 @@ export const isBasicConfigValid = () => {
27
// Live preview config validation
28
export const isLpConfigValid = () => {
29
return (
30
- !!ENV.LIVE_PREVIEW &&
+ ENV.LIVE_PREVIEW === "true" &&
31
!!ENV.PREVIEW_TOKEN &&
32
!!ENV.PREVIEW_HOST &&
33
!!ENV.APP_HOST
@@ -75,7 +75,7 @@ export const initializeContentStackSdk = (): Stack => {
75
};
76
77
// api host url
78
-export const customHostUrl = (baseUrl=''): string => {
+export const customHostUrl = (baseUrl = ''): string => {
79
return baseUrl.replace("api", "cdn");
80
81
0 commit comments