fixed: 修复短剧API访问404的问题

This commit is contained in:
djteang 2025-09-10 14:41:18 +08:00
parent 84b0aa6e8f
commit 65b46211ef
8 changed files with 0 additions and 23 deletions

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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 {

View File

@ -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');