diff --git a/vibn-frontend/app/[workspace]/project/[projectId]/(home)/preview/page.tsx b/vibn-frontend/app/[workspace]/project/[projectId]/(home)/preview/page.tsx index 06d1f135..c5e88069 100644 --- a/vibn-frontend/app/[workspace]/project/[projectId]/(home)/preview/page.tsx +++ b/vibn-frontend/app/[workspace]/project/[projectId]/(home)/preview/page.tsx @@ -26,7 +26,7 @@ export default function PreviewTab() { const previews = anatomy?.hosting.previews ?? []; // Find the port 3000 preview if it exists, otherwise fall back to null - const primaryPreview = previews.find(p => p.port === 3000); + const primaryPreview = previews.find((p) => p.port === 3000); const [iframeSrc, setIframeSrc] = useState(null); const iframeDomRef = useRef(null); @@ -34,6 +34,7 @@ export default function PreviewTab() { const origin = typeof window !== "undefined" ? window.location.origin : ""; const deviceMode = usePreviewToolbarStore((s) => s.deviceMode); + const refreshKey = usePreviewToolbarStore((s) => s.refreshKey); useLayoutEffect(() => { setIframeSrc(primaryPreview?.url ?? null); @@ -72,7 +73,7 @@ export default function PreviewTab() { ) : iframeSrc ? (