Skip to content

Remove stale pagination cursors causing 404s#148

Merged
camillacrane merged 1 commit intomainfrom
fix/remove-stale-pagination-cursors
Mar 12, 2026
Merged

Remove stale pagination cursors causing 404s#148
camillacrane merged 1 commit intomainfrom
fix/remove-stale-pagination-cursors

Conversation

@jakebromberg
Copy link
Member

@jakebromberg jakebromberg commented Mar 12, 2026

Summary

  • Remove hardcoded TinaCMS Relay before cursor (pointing to July 2022) from all GraphQL queries across 8 files
  • Replace raw GraphQL in archive getStaticPaths with the typed client.queries.archiveConnection() pattern
  • Increase specialty show episode limit from 30 to 100

Closes #147

Test plan

  • Verify npm run build succeeds (all archive/blog pages are generated)
  • Verify https://wxyc.org/archive/karen-dalton-07-20-2025 loads after deploy
  • Verify homepage blog carousel and archive carousel show recent content
  • Verify /blog, /archive, /archive/events, /archive/specialty-shows list pages show recent content

All TinaCMS GraphQL queries across the site included a hardcoded Relay `before` cursor pointing to a July 2022 timestamp. This caused queries to silently exclude any content published after that date, resulting in 404s for newer archive and blog pages (e.g. /archive/karen-dalton-07-20-2025). Replaced the raw GraphQL in archive getStaticPaths with the typed client query pattern already used by the blog, and removed the stale cursor from all remaining queries.
Copy link
Contributor

@camillacrane camillacrane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, Jake!

@camillacrane camillacrane merged commit 9df3008 into main Mar 12, 2026
1 check passed
@camillacrane
Copy link
Contributor

Looks like build was successful but content is still 404ing

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.

Archive and blog pages 404 for content published after July 2022

2 participants