mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-06-01 00:39:35 +08:00
build(tauri): 更新后端端口并优化打包流程
- 将后端端口从8000 修改为 8483 - 更新前端请求基础 URL 以匹配新的后端端口 - 优化后端打包脚本,确保 .env 文件正确复制和清理 - 修改后端主程序和请求工具中的端口配置
This commit is contained in:
@@ -44,7 +44,7 @@ load_dotenv()
|
||||
|
||||
# 后端 API 地址与端口(若有需要可以在代码其他部分使用 BACKEND_BASE_URL)
|
||||
API_BASE_URL = os.getenv("API_BASE_URL", "http://localhost")
|
||||
BACKEND_PORT = os.getenv("BACKEND_PORT", "8000")
|
||||
BACKEND_PORT = os.getenv("BACKEND_PORT", "8483")
|
||||
BACKEND_BASE_URL = f"{API_BASE_URL}:{BACKEND_PORT}"
|
||||
|
||||
# 输出目录(用于缓存音频、转写、Markdown 文件,以及存储截图)
|
||||
|
||||
Reference in New Issue
Block a user