lushdog@outlook.com 1 kuukausi sitten
vanhempi
commit
484e03027e
2 muutettua tiedostoa jossa 2 lisäystä ja 3 poistoa
  1. 0 1
      .env
  2. 2 2
      Dockerfile

+ 0 - 1
.env

@@ -1 +0,0 @@
-SOL_ENDPOINT=https://go.getblock.io/88f35f6689954e41bce217ce5b7f02c0

+ 2 - 2
Dockerfile

@@ -30,7 +30,7 @@ COPY --from=deps /app/node_modules ./node_modules
 # 复制源代码
 COPY . .
 # 设置构建时需要的环境变量
-ENV SOL_ENDPOINT=https://go.getblock.io/88f35f6689954e41bce217ce5b7f02c0
+ENV SOL_ENDPOINT=${SOL_ENDPOINT}
 # 构建应用
 RUN pnpm build
 
@@ -42,7 +42,7 @@ ENV NODE_ENV=production
 # 禁用 Next.js 遥测
 ENV NEXT_TELEMETRY_DISABLED=1
 
-ENV SOL_ENDPOINT=https://go.getblock.io/88f35f6689954e41bce217ce5b7f02c0
+ENV SOL_ENDPOINT=${SOL_ENDPOINT}
 
 # 创建非 root 用户
 RUN addgroup --system --gid 1001 nodejs