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' ? '电视剧' : '综艺'; };