Skip to content

fix(developers): add ISR revalidation to prevent stale hackathon events#18095

Open
nloureiro wants to merge 1 commit intoethereum:devfrom
nloureiro:fix/developers-events-isr
Open

fix(developers): add ISR revalidation to prevent stale hackathon events#18095
nloureiro wants to merge 1 commit intoethereum:devfrom
nloureiro:fix/developers-events-isr

Conversation

@nloureiro
Copy link
Copy Markdown
Contributor

Fixes #18086

Problem

The /developers/ hackathons section shows events from a Geode Labs Supabase API. The filter logic in fetchEvents.ts correctly removes past events — but only at build time. Between deployments, old events linger in the static output, as happened with ETHGlobal Cannes (Apr 3–5) and ETHSilesia (Apr 16–19) appearing as upcoming after they had passed.

Fix

Add Next.js ISR (export const revalidate = 86400) to the developers page so it regenerates at most every 24 hours automatically, keeping the events list current without waiting for a full deployment.

Changes

  • app/[locale]/developers/page.tsx — add export const revalidate = 86400

Why 24 hours

Events are typically announced days/weeks in advance so a 24 h window won't miss anything meaningful, while preventing the multi-week staleness seen now. This can be tuned down if needed.

The developers page is statically generated at build time, which means
the hackathons section can show past events between deployments — events
fetched from the Geode Labs Supabase API are correctly date-filtered in
code, but only at build time.

Adding `export const revalidate = 86400` tells Next.js to re-fetch and
regenerate this page at most once every 24 hours (ISR), so events stay
current without requiring a full deployment.

Fixes ethereum#18086
Spotted via: weekly QA review (2026-04-27)
@netlify
Copy link
Copy Markdown

netlify Bot commented May 1, 2026

Deploy Preview for ethereumorg failed.

Name Link
🔨 Latest commit 34923e4
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/69f43be8dead9300087bc019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(developers): past hackathon events still showing as upcoming — stale static build

1 participant