Skip to content

Commit 2a5c310

Browse files
committed
Fixed live preview env comparison
1 parent 0422909 commit 2a5c310

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sdk/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const isBasicConfigValid = () => {
2727
// Live preview config validation
2828
export const isLpConfigValid = () => {
2929
return (
30-
!!ENV.LIVE_PREVIEW &&
30+
ENV.LIVE_PREVIEW === "true" &&
3131
!!ENV.PREVIEW_TOKEN &&
3232
!!ENV.PREVIEW_HOST &&
3333
!!ENV.APP_HOST
@@ -75,7 +75,7 @@ export const initializeContentStackSdk = (): Stack => {
7575
};
7676

7777
// api host url
78-
export const customHostUrl = (baseUrl=''): string => {
78+
export const customHostUrl = (baseUrl = ''): string => {
7979
return baseUrl.replace("api", "cdn");
8080
};
8181

0 commit comments

Comments
 (0)