mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-03-21 00:07:30 +08:00
fix: load dynamic config
This commit is contained in:
@@ -22,6 +22,10 @@ COPY --from=deps /app/node_modules ./node_modules
|
||||
# 复制全部源代码
|
||||
COPY . .
|
||||
|
||||
# 在构建阶段也显式设置 DOCKER_ENV,
|
||||
# 确保 Next.js 在编译时即选择 Node Runtime 而不是 Edge Runtime
|
||||
ENV DOCKER_ENV=true
|
||||
|
||||
# 生成生产构建
|
||||
RUN pnpm run build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user