From f1b331d923cb9720865409892b9fb5d590ff38f7 Mon Sep 17 00:00:00 2001 From: Xin Wang Date: Thu, 18 Dec 2025 09:41:42 +0800 Subject: [PATCH] try to fix fast reload --- next.config.js | 4 ++++ src/components/chat/ChatOverlay.tsx | 2 +- src/components/playground/PhoneSimulator.tsx | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/next.config.js b/next.config.js index 6b1a3e0..bc37f80 100644 --- a/next.config.js +++ b/next.config.js @@ -4,6 +4,10 @@ const withNextPluginPreval = createNextPluginPreval(); /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: false, + // Explicitly allow znjj.wangxin93.eu.org for Dev Origin, per future Next.js requirement. + allowedDevOrigins: [ + "znjj.wangxin93.eu.org", + ], }; module.exports = withNextPluginPreval(nextConfig); diff --git a/src/components/chat/ChatOverlay.tsx b/src/components/chat/ChatOverlay.tsx index 8fc020e..5412687 100644 --- a/src/components/chat/ChatOverlay.tsx +++ b/src/components/chat/ChatOverlay.tsx @@ -11,7 +11,7 @@ export interface ChatOverlayProps { isVisible: boolean; position: { x: number; y: number }; onPositionChange: (position: { x: number; y: number }) => void; - containerRef: React.RefObject; + containerRef: React.RefObject; onToggle: () => void; } diff --git a/src/components/playground/PhoneSimulator.tsx b/src/components/playground/PhoneSimulator.tsx index f8e4932..61f35fa 100644 --- a/src/components/playground/PhoneSimulator.tsx +++ b/src/components/playground/PhoneSimulator.tsx @@ -1179,7 +1179,7 @@ export function PhoneSimulator({