fixed95: 动漫页标题显示动漫+修复构建期版本号注入

This commit is contained in:
3970260761 committed 2026-11-08 23:27:22 +08:00
1 parent 421328c6cb
commit 142cf135a5
2 files changed
+5 -1

No files matched your search

+4 -1
View File
@@ -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 ./
+1
View File
@@ -250,6 +250,7 @@ function DoubanPageClient() {
const getPageTitle = () => {
// 根据 type 生成标题
if (type === 'tv' && catParam === 'tv_animation') return '动漫';
return type === 'movie' ? '电影' : type === 'tv' ? '电视剧' : '综艺';
};