From bc46d953502794faad80284f46a147c50358c6cf Mon Sep 17 00:00:00 2001 From: Jamil Date: Mon, 4 Nov 2024 10:32:43 -0800 Subject: [PATCH] chore(website): Increase cache revalidation to 1 hour (#7258) Why: Reduces the number of edge functions that need to run, and thus reducing the likelihood this endpoint will timeout due to slow edge function startup. --- website/src/app/api/releases/route.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/src/app/api/releases/route.ts b/website/src/app/api/releases/route.ts index fda572024..cfb439693 100644 --- a/website/src/app/api/releases/route.ts +++ b/website/src/app/api/releases/route.ts @@ -4,8 +4,8 @@ import { get } from "@vercel/edge-config"; // Cache responses export const dynamic = "force-static"; -// Revalidate cache every 60 seconds -export const revalidate = 60; +// Revalidate cache at most every hour +export const revalidate = 3600; export async function GET(_req: NextRequest) { const versions = {