We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 066b705 + 2cf372d commit 0b96a81Copy full SHA for 0b96a81
1 file changed
src/livePreview/editButton/editButton.ts
@@ -570,6 +570,12 @@ effect(function handleWindowTypeChange() {
570
// we need to specify when to run this effect.
571
// here, we run it when the value of windowType changes
572
if (typeof window === "undefined") return;
573
+ if (
574
+ typeof process !== "undefined" &&
575
+ (process?.env?.PURGE_PREVIEW_SDK === "true" ||
576
+ process?.env?.REACT_APP_PURGE_PREVIEW_SDK === "true")
577
+ )
578
+ return;
579
Config.get().windowType;
580
if (LivePreviewEditButton && !isOpeningInTimeline()) {
581
toggleEditButtonElement();
0 commit comments