From b344ce97b90310da5bc2b864cb59d7967037d070 Mon Sep 17 00:00:00 2001 From: Konstantinos Kopanidis Date: Fri, 21 Aug 2026 12:24:43 +0300 Subject: [PATCH] fix(web): keep marketing routes static on Cloudflare Workers The GitHub star fetch used ISR revalidation, which cannot write to the read-only static-assets cache and 500s every non-home route. --- apps/web/src/app/layout.tsx | 2 ++ apps/web/src/lib/github-stars.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/web/src/app/layout.tsx b/apps/web/src/app/layout.tsx index f3fe8feb..beac17c3 100644 --- a/apps/web/src/app/layout.tsx +++ b/apps/web/src/app/layout.tsx @@ -30,6 +30,8 @@ export const metadata: Metadata = { metadataBase: new URL("https://getconduit.dev"), }; +export const dynamic = "force-static"; + export default function RootLayout({ children, }: Readonly<{ diff --git a/apps/web/src/lib/github-stars.ts b/apps/web/src/lib/github-stars.ts index 3cd8666c..46eb07c0 100644 --- a/apps/web/src/lib/github-stars.ts +++ b/apps/web/src/lib/github-stars.ts @@ -9,7 +9,7 @@ export async function getGitHubStarCount(): Promise { Accept: "application/vnd.github+json", "User-Agent": "Conduit-Website", }, - next: { revalidate: 3600 }, + cache: "force-cache", }); if (!response.ok) return null;