diff --git a/src/app/api/gh/[...all]/route.ts b/src/app/api/gh/[...all]/route.ts index b710c0bc15..2ee689f0e9 100644 --- a/src/app/api/gh/[...all]/route.ts +++ b/src/app/api/gh/[...all]/route.ts @@ -5,6 +5,7 @@ import { NextResponse } from 'next/server' import type { NextRequest } from 'next/server' export const runtime = 'edge' +export const revalidate = 60 * 60 * 24 // 24 hours export const GET = async (req: NextRequest) => { const pathname = req.nextUrl.pathname.split('/').slice(3) const query = req.nextUrl.searchParams diff --git a/src/app/api/tmdb/[...all]/route.ts b/src/app/api/tmdb/[...all]/route.ts index 00b3d992df..3cbe5fd638 100644 --- a/src/app/api/tmdb/[...all]/route.ts +++ b/src/app/api/tmdb/[...all]/route.ts @@ -7,6 +7,7 @@ import type { NextRequest } from 'next/server' import { NextServerResponse } from '~/lib/edge-function.server' export const runtime = 'edge' +export const revalidate = 60 * 60 * 24 // 24 hours export const GET = async (req: NextRequest) => { const pathname = req.nextUrl.pathname.split('/').slice(3) const query = req.nextUrl.searchParams