From 6c25a24440ea13b9333d9794e04932fb7551569e Mon Sep 17 00:00:00 2001 From: chenhang Date: Tue, 23 Jun 2026 18:58:40 +0800 Subject: [PATCH] feat(config): add new image hosting configuration for picui --- next.config.ts | 4 ++++ src/core/net/chat-websocket.ts | 6 +----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/next.config.ts b/next.config.ts index c4ede2aa..2863d1fd 100644 --- a/next.config.ts +++ b/next.config.ts @@ -32,6 +32,10 @@ const nextConfig: NextConfig = { hostname: "**.supabase.co", pathname: "/storage/v1/object/public/**", }, + { + protocol: "https", + hostname: "free.picui.cn", + }, ], }, }; diff --git a/src/core/net/chat-websocket.ts b/src/core/net/chat-websocket.ts index 81ced9b0..5c78af72 100644 --- a/src/core/net/chat-websocket.ts +++ b/src/core/net/chat-websocket.ts @@ -1,10 +1,6 @@ /** * 聊天 WebSocket 处理器 - * - * 原始 Dart: lib/core/net/websocket_handler.dart - * - * 浏览器方案:使用原生 `WebSocket` API,封装连接管理 + 重连 + 事件回调。 - * + * * 事件: * - onConnected(userId) * - onTyping(isTyping)