Skip to content

Release: ingest dedup + env var cleanup#620

Merged
codercatdev merged 1 commit intomainfrom
dev
Mar 5, 2026
Merged

Release: ingest dedup + env var cleanup#620
codercatdev merged 1 commit intomainfrom
dev

Conversation

@codercatdev
Copy link
Contributor

What's shipping

PR #619 — Ingest topic dedup

  • isTopicAlreadyCovered() checks Sanity for existing contentIdea + automatedVideo docs by title match + topic overlap
  • Walks ranked trends list, skips covered topics, picks first uncovered one
  • isSlugTaken() prevents slug collisions
  • Configurable dedupWindowDays in Content Config singleton (default 90, 0 to disable)
  • Graceful degradation: dedup failures don't block the pipeline

PR #618 — Remove env var fallbacks + Sanity schema descriptions

  • Removed 9 redundant process.env fallbacks (Sanity is single source of truth)
  • Added descriptions to all 30+ fields across 6 config schemas
  • revalidateTag fix for Next.js 16 (requires 2 args)

Both PRs reviewed and merged to dev. No action needed from Alex.

Before creating a new contentIdea, the ingest cron now walks the ranked trends list and skips any topic already covered within a configurable dedup window (default 90 days).\n\n- extractSearchTerms() strips stop words, returns 2-3 key terms\n- isTopicAlreadyCovered() checks title match + topic tag overlap in Sanity\n- isSlugTaken() prevents slug collisions on automatedVideo\n- Graceful degradation: dedup failures don't block the pipeline\n- dedupWindowDays added to contentConfig singleton (0 to disable)
@vercel
Copy link

vercel bot commented Mar 5, 2026

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

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
codingcat-dev Ignored Ignored Mar 5, 2026 2:34pm

@codercatdev codercatdev merged commit 769de83 into main Mar 5, 2026
1 of 3 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.

1 participant