feat: 添加开发和生产环境配置文件

This commit is contained in:
MatrixSeven
2025-08-01 20:23:58 +08:00
parent e25a23bd30
commit 0000be2a68
2 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
# 开发环境配置
GO_BACKEND_URL=http://localhost:8080
NEXT_PUBLIC_API_BASE_URL=http://localhost:3000
NEXT_PUBLIC_WS_URL=ws://localhost:8080/ws
NODE_ENV=development

View File

@@ -0,0 +1,6 @@
# 生产环境配置 - 静态构建模式
# 前端将构建为静态文件嵌入到Go二进制中
GO_BACKEND_URL=https://transfer.52python.cn
NEXT_PUBLIC_API_BASE_URL=https://transfer.52python.cn
NEXT_PUBLIC_WS_URL=wss://transfer.52python.cn/ws
NODE_ENV=production