From 65b46211ef835760491fcc74967bc9bcc559c5a4 Mon Sep 17 00:00:00 2001 From: djteang <935037887@qq.com> Date: Wed, 10 Sep 2025 14:41:18 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=20=E4=BF=AE=E5=A4=8D=E7=9F=AD=E5=89=A7AP?= =?UTF-8?q?I=E8=AE=BF=E9=97=AE404=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/api/search/suggestions/route.ts | 2 -- src/app/api/shortdrama/latest/route.ts | 3 --- src/app/api/shortdrama/list/route.ts | 3 --- src/app/api/shortdrama/parse/all/route.ts | 3 --- src/app/api/shortdrama/parse/batch/route.ts | 3 --- src/app/api/shortdrama/parse/single/route.ts | 3 --- src/app/api/shortdrama/recommend/route.ts | 3 --- src/app/api/shortdrama/search/route.ts | 3 --- 8 files changed, 23 deletions(-) diff --git a/src/app/api/search/suggestions/route.ts b/src/app/api/search/suggestions/route.ts index 6583c02..88e97b4 100644 --- a/src/app/api/search/suggestions/route.ts +++ b/src/app/api/search/suggestions/route.ts @@ -9,8 +9,6 @@ import { searchFromApi } from '@/lib/downstream'; import { yellowWords } from '@/lib/yellow'; export const runtime = 'nodejs'; -// 强制动态渲染 -export const dynamic = 'force-dynamic'; export async function GET(request: NextRequest) { try { diff --git a/src/app/api/shortdrama/latest/route.ts b/src/app/api/shortdrama/latest/route.ts index 963715e..02241f4 100644 --- a/src/app/api/shortdrama/latest/route.ts +++ b/src/app/api/shortdrama/latest/route.ts @@ -1,9 +1,6 @@ import { NextRequest, NextResponse } from 'next/server'; import { API_CONFIG } from '@/lib/config'; -// 强制动态渲染 -export const dynamic = 'force-dynamic'; - // 转换外部API数据格式到内部格式 - 最新剧集API使用vod_id作为实际视频ID function transformExternalData(externalItem: any) { return { diff --git a/src/app/api/shortdrama/list/route.ts b/src/app/api/shortdrama/list/route.ts index ef3c3d0..b01eac4 100644 --- a/src/app/api/shortdrama/list/route.ts +++ b/src/app/api/shortdrama/list/route.ts @@ -1,9 +1,6 @@ import { NextRequest, NextResponse } from 'next/server'; import { API_CONFIG } from '@/lib/config'; -// 强制动态渲染 -export const dynamic = 'force-dynamic'; - // 转换外部API数据格式到内部格式 - 分类热搜API直接使用id作为视频ID function transformExternalData(externalItem: any) { return { diff --git a/src/app/api/shortdrama/parse/all/route.ts b/src/app/api/shortdrama/parse/all/route.ts index e02ba63..587c490 100644 --- a/src/app/api/shortdrama/parse/all/route.ts +++ b/src/app/api/shortdrama/parse/all/route.ts @@ -1,9 +1,6 @@ import { NextRequest, NextResponse } from 'next/server'; import { API_CONFIG } from '@/lib/config'; -// 强制动态渲染 -export const dynamic = 'force-dynamic'; - export async function GET(request: NextRequest) { try { const { searchParams } = new URL(request.url); diff --git a/src/app/api/shortdrama/parse/batch/route.ts b/src/app/api/shortdrama/parse/batch/route.ts index 1258796..cdd316f 100644 --- a/src/app/api/shortdrama/parse/batch/route.ts +++ b/src/app/api/shortdrama/parse/batch/route.ts @@ -1,9 +1,6 @@ import { NextRequest, NextResponse } from 'next/server'; import { API_CONFIG } from '@/lib/config'; -// 强制动态渲染 -export const dynamic = 'force-dynamic'; - export async function GET(request: NextRequest) { try { const { searchParams } = new URL(request.url); diff --git a/src/app/api/shortdrama/parse/single/route.ts b/src/app/api/shortdrama/parse/single/route.ts index da4e233..4b0612a 100644 --- a/src/app/api/shortdrama/parse/single/route.ts +++ b/src/app/api/shortdrama/parse/single/route.ts @@ -1,9 +1,6 @@ import { NextRequest, NextResponse } from 'next/server'; import { API_CONFIG } from '@/lib/config'; -// 强制动态渲染 -export const dynamic = 'force-dynamic'; - export async function GET(request: NextRequest) { try { const { searchParams } = new URL(request.url); diff --git a/src/app/api/shortdrama/recommend/route.ts b/src/app/api/shortdrama/recommend/route.ts index 5433e4b..338af67 100644 --- a/src/app/api/shortdrama/recommend/route.ts +++ b/src/app/api/shortdrama/recommend/route.ts @@ -1,9 +1,6 @@ import { NextRequest, NextResponse } from 'next/server'; import { API_CONFIG } from '@/lib/config'; -// 强制动态渲染 -export const dynamic = 'force-dynamic'; - // 转换外部API数据格式到内部格式 - 推荐API通常和分类热搜格式相同 function transformExternalData(externalItem: any) { return { diff --git a/src/app/api/shortdrama/search/route.ts b/src/app/api/shortdrama/search/route.ts index a9aa069..5aaa6f7 100644 --- a/src/app/api/shortdrama/search/route.ts +++ b/src/app/api/shortdrama/search/route.ts @@ -1,9 +1,6 @@ import { NextRequest, NextResponse } from 'next/server'; import { API_CONFIG } from '@/lib/config'; -// 强制动态渲染 -export const dynamic = 'force-dynamic'; - export async function GET(request: NextRequest) { const { searchParams } = new URL(request.url); const name = searchParams.get('name');