diff --git a/src/app/(app)/feed/route.tsx b/src/app/(app)/feed/route.tsx index ef35357bfe..1aeed0b938 100644 --- a/src/app/(app)/feed/route.tsx +++ b/src/app/(app)/feed/route.tsx @@ -20,7 +20,7 @@ import { getQueryClient } from '~/lib/query-client.server' import { apiClient } from '~/lib/request' // export const dynamic = 'force-dynamic' -export const revalidate = 60 * 60 * 24 // 1 day +export const revalidate = 86400 // 1 day interface RSSProps { title: string diff --git a/src/app/(app)/og/route.tsx b/src/app/(app)/og/route.tsx index 2a052b1cf9..7e57710a89 100644 --- a/src/app/(app)/og/route.tsx +++ b/src/app/(app)/og/route.tsx @@ -26,7 +26,7 @@ const apiClient = createClient(fetchAdaptor)(API_URL, { export const runtime = 'edge' -export const revalidate = 60 * 60 * 24 // 24 hours +export const revalidate = 86400 // 24 hours const resOptions = { width: 1200, diff --git a/src/app/(app)/sitemap/route.tsx b/src/app/(app)/sitemap/route.tsx index 4b945e04fd..517e36c3ee 100644 --- a/src/app/(app)/sitemap/route.tsx +++ b/src/app/(app)/sitemap/route.tsx @@ -2,7 +2,7 @@ import { getQueryClient } from '~/lib/query-client.server' import { apiClient } from '~/lib/request' export const dynamic = 'force-dynamic' -export const revalidate = 60 * 60 // 1 hour +export const revalidate = 3600 // 1 hour export const GET = async () => { const queryClient = getQueryClient() diff --git a/src/app/api/gh/[...all]/route.ts b/src/app/api/gh/[...all]/route.ts index 2ee689f0e9..9f8a1fa52f 100644 --- a/src/app/api/gh/[...all]/route.ts +++ b/src/app/api/gh/[...all]/route.ts @@ -5,7 +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 revalidate = 86400 // 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 3cbe5fd638..43243e0172 100644 --- a/src/app/api/tmdb/[...all]/route.ts +++ b/src/app/api/tmdb/[...all]/route.ts @@ -7,7 +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 revalidate = 86400 // 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/xlog/summary/route.ts b/src/app/api/xlog/summary/route.ts index 08cea59481..5c0db7d474 100644 --- a/src/app/api/xlog/summary/route.ts +++ b/src/app/api/xlog/summary/route.ts @@ -10,7 +10,7 @@ const headers = { export const runtime = 'edge' -export const revalidate = 60 * 60 // 1 hour +export const revalidate = 3600 // 1 hour export const GET = async (req: NextRequest) => { const query = req.nextUrl.searchParams