mirror of
https://github.com/MatrixSeven/file-transfer-go.git
synced 2026-02-04 11:34:45 +08:00
feat: 添加开发和生产环境配置文件
This commit is contained in:
5
chuan-next/.env.development
Normal file
5
chuan-next/.env.development
Normal 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
|
||||
6
chuan-next/.env.production
Normal file
6
chuan-next/.env.production
Normal 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
|
||||
Reference in New Issue
Block a user