From 142cf135a5125b34f82aedd9be1deda0a6721033 Mon Sep 17 00:00:00 2001 From: 3970260761 <3970260761@qq.com> Date: Sun, 8 Nov 2026 23:27:22 +0800 Subject: [PATCH] =?UTF-8?q?fixed95:=20=E5=8A=A8=E6=BC=AB=E9=A1=B5=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E6=98=BE=E7=A4=BA=E5=8A=A8=E6=BC=AB+=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E6=9E=84=E5=BB=BA=E6=9C=9F=E7=89=88=E6=9C=AC=E5=8F=B7?= =?UTF-8?q?=E6=B3=A8=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 5 ++++- src/app/douban/page.tsx | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index dc0a5e1..e42cdcb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,6 +33,8 @@ COPY . . 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 @@ -51,7 +53,8 @@ ENV NODE_ENV=production ENV HOSTNAME=0.0.0.0 ENV PORT=3000 ENV DOCKER_ENV=true -ENV NEXT_PUBLIC_SITE_VERSION=fixed94 +ENV NEXT_PUBLIC_SITE_VERSION=fixed95 +ENV NEXT_PUBLIC_SITE_VERSION_BUILD=fixed95 # 从构建器中复制 standalone 输出 COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ diff --git a/src/app/douban/page.tsx b/src/app/douban/page.tsx index 1d1b470..6f14525 100644 --- a/src/app/douban/page.tsx +++ b/src/app/douban/page.tsx @@ -250,6 +250,7 @@ function DoubanPageClient() { const getPageTitle = () => { // 根据 type 生成标题 + if (type === 'tv' && catParam === 'tv_animation') return '动漫'; return type === 'movie' ? '电影' : type === 'tv' ? '电视剧' : '综艺'; };