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 ./