diff --git a/src/app/editor/page.tsx b/src/app/editor/page.tsx index 5c4428d..f3d515a 100644 --- a/src/app/editor/page.tsx +++ b/src/app/editor/page.tsx @@ -820,6 +820,7 @@ function EditorPageInner() { useEffect(() => { if (!authChecked) return; if (typeof window === "undefined") return; + if ((window as any).__PB_DISABLE_AUTOSAVE) return; const slug = projectConfig?.slug?.trim(); if (!slug) return; @@ -861,6 +862,7 @@ function EditorPageInner() { useEffect(() => { if (typeof window === "undefined") return; + if ((window as any).__PB_DISABLE_AUTOSAVE) return; const slug = projectConfig?.slug?.trim(); if (!slug) return; diff --git a/src/app/preview/page.tsx b/src/app/preview/page.tsx index 353c4bd..7e51462 100644 --- a/src/app/preview/page.tsx +++ b/src/app/preview/page.tsx @@ -42,6 +42,7 @@ export default function PreviewPage() { useEffect(() => { if (typeof window === "undefined") return; + if ((window as any).__PB_DISABLE_AUTOSAVE) return; const configSlugRaw = (projectConfig as any)?.slug?.trim?.(); const configSlug = diff --git a/tests/e2e/editor.spec.ts b/tests/e2e/editor.spec.ts index e535579..34eff25 100644 --- a/tests/e2e/editor.spec.ts +++ b/tests/e2e/editor.spec.ts @@ -10,6 +10,8 @@ test.beforeEach(async ({ page }) => { window.localStorage.clear(); } catch { } + + (window as any).__PB_DISABLE_AUTOSAVE = true; }); await page.route("**/api/auth/me", async (route) => { diff --git a/tests/e2e/form-editor-preview-parity.spec.ts b/tests/e2e/form-editor-preview-parity.spec.ts index 7a74d19..d791208 100644 --- a/tests/e2e/form-editor-preview-parity.spec.ts +++ b/tests/e2e/form-editor-preview-parity.spec.ts @@ -11,6 +11,8 @@ test.beforeEach(async ({ page }) => { window.localStorage.clear(); } catch { } + + (window as any).__PB_DISABLE_AUTOSAVE = true; }); await page.route("**/api/auth/me", async (route) => { diff --git a/tests/e2e/preview.spec.ts b/tests/e2e/preview.spec.ts index b6ed68c..7ec1b4b 100644 --- a/tests/e2e/preview.spec.ts +++ b/tests/e2e/preview.spec.ts @@ -27,6 +27,8 @@ test.beforeEach(async ({ page }) => { } catch { // localStorage 접근 실패는 테스트 진행에 치명적이지 않으므로 조용히 무시한다. } + + (window as any).__PB_DISABLE_AUTOSAVE = true; }); await page.route("**/api/auth/me", async (route) => {