Skip to content

Commit f01b6fa

Browse files
ralyodioclaude
andauthored
fix(footer): revalidate static pages hourly so the shared footer updates (#42)
The homepage and other prerendered pages were baked at build (s-maxage=31536000), so a @profullstack/footer release would only show after a redeploy. ISR every hour instead. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 94d1f61 commit f01b6fa

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎apps/web/src/app/layout.tsx‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ const SITE = "https://c0mpute.com";
99
const DESCRIPTION =
1010
"The open compute network. Run jobs anywhere, sell unused compute, pay only for verified work. CPUs, GPUs, storage and bandwidth from PCs to data centers, through one open protocol — for humans and AI agents.";
1111

12+
// Static pages re-render hourly so the footer (@profullstack/footer, which fetches the
13+
// package's @latest template) picks up a footer release without a redeploy. Without
14+
// this the prerendered pages are baked at build (s-maxage=31536000) and only a
15+
// redeploy would change the footer.
16+
export const revalidate = 3600;
17+
1218
export const metadata: Metadata = {
1319
title: "c0mpute — the open compute network",
1420
description: DESCRIPTION,

0 commit comments

Comments
 (0)