From 8ea5cadd5dc688a2085e0811d2c4562832f5c22a Mon Sep 17 00:00:00 2001 From: aaron <> Date: Sat, 1 Mar 2025 22:54:59 +0800 Subject: [PATCH] update --- Dockerfile | 4 ++-- src/services/config.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 034146c..f4ce706 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,8 @@ FROM node:18-alpine as build-stage # 设置环境变量 -ARG APP_ENV -ENV APP_ENV=${APP_ENV} +ARG NODE_ENV +ENV NODE_ENV=${NODE_ENV} # 设置工作目录 WORKDIR /app diff --git a/src/services/config.js b/src/services/config.js index f6cfd07..2a147b6 100644 --- a/src/services/config.js +++ b/src/services/config.js @@ -10,4 +10,4 @@ const env = { } } - export default env[process.env.APP_ENV || 'local'] \ No newline at end of file + export default env[process.env.NODE_ENV || 'local'] \ No newline at end of file