From 0000be2a68a19126c13fe60e10409e00d44d8183 Mon Sep 17 00:00:00 2001 From: MatrixSeven Date: Fri, 1 Aug 2025 20:23:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=BC=80=E5=8F=91?= =?UTF-8?q?=E5=92=8C=E7=94=9F=E4=BA=A7=E7=8E=AF=E5=A2=83=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chuan-next/.env.development | 5 +++++ chuan-next/.env.production | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 chuan-next/.env.development create mode 100644 chuan-next/.env.production 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