From 5e7c381e079870b6276b8f6c0e1c468cd827c740 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=BB=BA=E6=AD=A6?= Date: Fri, 9 May 2025 13:24:12 +0800 Subject: [PATCH] =?UTF-8?q?refactor(env):=20=E4=BC=98=E5=8C=96=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E5=8F=98=E9=87=8F=E9=85=8D=E7=BD=AE=E5=92=8C=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E5=9F=BA=E5=9C=B0=E5=9D=80=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除 request.ts 中的重复 baseURL 配置 - 在 vite.config.ts 中添加默认的 API基地址和前端端口- 更新请求基地址为相对路径,提高可维护性 --- .env.example | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.env.example b/.env.example index 1f17fb0..7594fda 100644 --- a/.env.example +++ b/.env.example @@ -1,11 +1,3 @@ -### - # @Author: 思诺特 jefferyhcool@gmail.com - # @Date: 2025-04-14 08:49:59 - # @LastEditors: 黄建武 huangjianwu@ynyuc.com - # @LastEditTime: 2025-05-02 14:04:11 - # @FilePath: \BiliNote\.env.example - # @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE -### # 通用端口配置 BACKEND_PORT=8001 FRONTEND_PORT=3015 @@ -14,7 +6,7 @@ BACKEND_HOST=0.0.0.0 # 默认为 0.0.0.0,表示监听所有 IP 地址 不建 # 前端访问后端用(生产环境建议写公网或宿主机 IP) VITE_API_BASE_URL=http://127.0.0.1:8001 VITE_SCREENSHOT_BASE_URL=http://127.0.0.1:8001/static/screenshots - +VITE_FRONTEND_PORT=3015 # 生产环境配置 ENV=production STATIC=/static @@ -28,5 +20,3 @@ FFMPEG_BIN_PATH= TRANSCRIBER_TYPE=fast-whisper # fast-whisper/bcut/kuaishou/mlx-whisper(仅Apple平台) WHISPER_MODEL_SIZE=base -#抖音Cookie设置 -DOUYIN_COOKIES= \ No newline at end of file