From 776f915db5163469979449d62e6d142eb4a3b552 Mon Sep 17 00:00:00 2001 From: 3970260761 <3970260761@qq.com> Date: Sun, 8 Nov 2026 23:27:25 +0800 Subject: [PATCH] =?UTF-8?q?fixed95:=20=E5=8E=BB=E6=8E=89=E5=A4=9A=E4=BD=99?= =?UTF-8?q?ENV=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e42cdcb..967f362 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,7 +34,6 @@ RUN find ./src -type f -name "route.ts" -print0 \ | xargs -0 sed -i "s/export const runtime = 'edge';/export const runtime = 'nodejs';/g" ENV DOCKER_ENV=true ENV NEXT_PUBLIC_SITE_VERSION=fixed95 -ENV NEXT_PUBLIC_SITE_VERSION_BUILD=fixed95 # For Docker builds, force dynamic rendering to read runtime environment variables. RUN sed -i "/const inter = Inter({ subsets: \['latin'] });/a export const dynamic = 'force-dynamic';" src/app/layout.tsx @@ -54,7 +53,6 @@ ENV HOSTNAME=0.0.0.0 ENV PORT=3000 ENV DOCKER_ENV=true ENV NEXT_PUBLIC_SITE_VERSION=fixed95 -ENV NEXT_PUBLIC_SITE_VERSION_BUILD=fixed95 # 从构建器中复制 standalone 输出 COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./