diff --git a/chuan-next/.env.development b/chuan-next/.env.development new file mode 100644 index 0000000..1a51d1f --- /dev/null +++ b/chuan-next/.env.development @@ -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 diff --git a/chuan-next/.env.production b/chuan-next/.env.production new file mode 100644 index 0000000..4f4d779 --- /dev/null +++ b/chuan-next/.env.production @@ -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