try to fix fast reload

This commit is contained in:
Xin Wang 2025-12-18 09:41:42 +08:00
parent 739c019404
commit f1b331d923
3 changed files with 6 additions and 2 deletions

View File

@ -4,6 +4,10 @@ const withNextPluginPreval = createNextPluginPreval();
/** @type {import('next').NextConfig} */ /** @type {import('next').NextConfig} */
const nextConfig = { const nextConfig = {
reactStrictMode: false, 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); module.exports = withNextPluginPreval(nextConfig);

View File

@ -11,7 +11,7 @@ export interface ChatOverlayProps {
isVisible: boolean; isVisible: boolean;
position: { x: number; y: number }; position: { x: number; y: number };
onPositionChange: (position: { x: number; y: number }) => void; onPositionChange: (position: { x: number; y: number }) => void;
containerRef: React.RefObject<HTMLDivElement>; containerRef: React.RefObject<HTMLDivElement | null>;
onToggle: () => void; onToggle: () => void;
} }

View File

@ -1179,7 +1179,7 @@ export function PhoneSimulator({
<ChatOverlay <ChatOverlay
agentAudioTrack={voiceAssistant.audioTrack} agentAudioTrack={voiceAssistant.audioTrack}
accentColor={config.settings.theme_color} accentColor={config.settings.theme_color}
inputDisabled={phoneMode === "important_message" || phoneMode === "hand_off"} inputDisabled={phoneMode === "hand_off"}
isVisible={showChatOverlay} isVisible={showChatOverlay}
position={chatOverlayPosition} position={chatOverlayPosition}
onPositionChange={setChatOverlayPosition} onPositionChange={setChatOverlayPosition}