폼 전송 TDD추가 및 암호화 적용 중
CI / test (push) Failing after 4m41s
CI / pr_and_merge (push) Has been skipped

This commit is contained in:
2025-12-02 11:02:15 +09:00
parent d0766fca45
commit 3e223a45d4
40 changed files with 1290 additions and 31 deletions
+20 -2
View File
@@ -39,7 +39,22 @@ export default function PreviewPage() {
useEffect(() => {
if (typeof window === "undefined") return;
const slug = (projectConfig as any)?.slug?.trim?.();
let slug = (projectConfig as any)?.slug?.trim?.();
if (!slug) {
try {
const url = new URL(window.location.href);
const fromQuery = url.searchParams.get("slug")?.trim();
if (fromQuery && fromQuery !== slug) {
slug = fromQuery;
updateProjectConfig({ slug: fromQuery } as any);
}
} catch {
// URL 파싱 오류는 무시하고, autosave 복원 없이 진행한다.
}
}
if (!slug) return;
const key = `pb:autosave:${slug}`;
@@ -163,7 +178,10 @@ export default function PreviewPage() {
className="w-full"
style={canvasStyle}
>
<PublicPageRenderer blocks={blocks} />
<PublicPageRenderer
blocks={blocks}
projectSlug={(projectConfig?.slug ?? "").trim() || undefined}
/>
</div>
</div>
</section>