폼전송 기능 수정
This commit is contained in:
@@ -4,6 +4,7 @@ import { PrismaClient } from "@prisma/client";
|
||||
import type { Block, ProjectConfig } from "@/features/editor/state/editorStore";
|
||||
import { buildStaticHtml } from "@/features/export/buildStaticHtml";
|
||||
import { getCachedPublicProject } from "@/features/projects/publicCache";
|
||||
import PublicProjectPageClient from "./PublicProjectPageClient";
|
||||
|
||||
const prisma = new PrismaClient();
|
||||
|
||||
@@ -75,5 +76,5 @@ export default async function PublicProjectPage({ params }: PageParams) {
|
||||
const mainMatch = fullHtml.match(/<main[\s\S]*?<\/main>/);
|
||||
const mainHtml = mainMatch ? mainMatch[0] : "";
|
||||
|
||||
return <div dangerouslySetInnerHTML={{ __html: mainHtml }} />;
|
||||
return <PublicProjectPageClient html={mainHtml} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user