Skip to content

fix: add revalidate = 1800 to /packs listing page#18

Merged
garysheng merged 1 commit intomainfrom
fix/packs-listing-revalidate
Mar 14, 2026
Merged

fix: add revalidate = 1800 to /packs listing page#18
garysheng merged 1 commit intomainfrom
fix/packs-listing-revalidate

Conversation

@garysheng
Copy link
Copy Markdown
Contributor

Problem

The /packs listing page was missing export const revalidate = 1800, causing it to serve stale prerendered snapshots while individual pack pages (which already export revalidate = 1800) updated correctly.

Root cause identified by @user in #16: the per-pack route at /packs/[name]/page.tsx exports revalidate = 1800 but the listing route at /packs/page.tsx did not.

Fix

Added export const revalidate = 1800; to site/src/app/packs/page.tsx, matching the per-pack page behavior.

Closes #16

The /packs listing page was missing the ISR revalidate export, causing it
to serve stale prerendered snapshots while individual pack pages (which
already export revalidate = 1800) updated correctly.

Fixes #16
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openpeon Ready Ready Preview, Comment Mar 14, 2026 2:16pm

Request Review

@garysheng garysheng merged commit ef6eca4 into main Mar 14, 2026
3 of 4 checks passed
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.

/packs listing appears stale while direct pack pages are already live

1 participant