fix: add sdk as script

This commit is contained in:
Christel Westerberg
2024-02-07 15:10:02 +01:00
parent 70f7e95036
commit e48a9535ef
7 changed files with 62 additions and 38 deletions

View File

@@ -0,0 +1,13 @@
"use client";
import ContentstackLivePreview from "@contentstack/live-preview-utils";
import { useEffect } from "react";
export default function InitLivePreview() {
useEffect(() => {
console.log("INIT");
ContentstackLivePreview.init();
}, []);
return null;
}