chore: 更新开发环境配置以支持局域网访问

修改前端和后端的.env文件,将API基础URL和服务器主机地址更改为局域网IP,以便在局域网内进行开发和测试
This commit is contained in:
zhangtao
2025-05-06 21:30:44 +08:00
parent 8a26c715bb
commit eb46919de3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
ENVIRONMENT = "dev" ENVIRONMENT = "dev"
# 服务器配置 # 服务器配置
SERVER_HOST = 'localhost' # 允许访问的IP地址 SERVER_HOST = '0.0.0.0' # 允许访问的IP地址
SERVER_PORT = 8000 # 服务端口 SERVER_PORT = 8000 # 服务端口
RELOAD = True # 是否自动重启 RELOAD = True # 是否自动重启
WORKERS = 1 # 启动进程数 WORKERS = 1 # 启动进程数
+1 -1
View File
@@ -2,7 +2,7 @@
VITE_ENV = development VITE_ENV = development
# 后端地址 # 后端地址
VITE_API_BASE_URL = "http://localhost:8000" VITE_API_BASE_URL = "http://192.168.0.101:8000"
# 后端接口基础路径 # 后端接口基础路径
VITE_API_BASE_NAME = "/api" VITE_API_BASE_NAME = "/api"