Skip to content

fix: move infographic instructions to Sanity config#623

Merged
codercatdev merged 3 commits intodevfrom
fix/infographic-instructions-config
Mar 5, 2026
Merged

fix: move infographic instructions to Sanity config#623
codercatdev merged 3 commits intodevfrom
fix/infographic-instructions-config

Conversation

@codercatdev
Copy link
Contributor

Summary

Moves the hardcoded INFOGRAPHIC_INSTRUCTIONS array from check-research/route.ts to the Sanity contentConfig singleton so Alex can tweak prompts directly in Sanity Studio.

Changes (2 files)

sanity/schemas/singletons/contentConfig.ts

  • Added infographicInstructions field — array of strings with the 5 original prompts as defaults

app/api/cron/check-research/route.ts

  • Replaced hardcoded INFOGRAPHIC_INSTRUCTIONS with getConfigValue("content_config", "infographicInstructions", DEFAULT_INFOGRAPHIC_INSTRUCTIONS)
  • Kept defaults as fallback for backward compat

codercatdev and others added 3 commits March 5, 2026 09:35
Release: ingest dedup + env var cleanup
fix: cap Pexels b-roll at 1080p — Lambda disk overflow fix
- Add infographicInstructions array field to contentConfig schema
- Replace hardcoded INFOGRAPHIC_INSTRUCTIONS in check-research with getConfigValue()
- Default values match the original 5 instructions

Co-authored-by: pm <pm@miriad.systems>
@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:58pm

@codercatdev codercatdev merged commit 9afc8b5 into dev Mar 5, 2026
2 of 3 checks passed
@codercatdev codercatdev deleted the fix/infographic-instructions-config branch March 5, 2026 14:59
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