You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Phase B — migrate cron routes to Sanity config (#613)
Migrates cron routes to Sanity config singletons. ingest/route.ts: enableNotebookLmResearch, qualityThreshold, systemInstruction from pipeline_config/content_config. check-research/route.ts: stuckTimeoutMinutes (with proportional sub-thresholds), qualityThreshold, systemInstruction. All use getConfigValue() with hardcoded fallbacks for backward compatibility. Also fixes pre-existing REDACTED SECRET corruption in FALLBACK_TRENDS. Secrets/API keys stay as process.env.
constSYSTEM_INSTRUCTION=`You are a content strategist and scriptwriter for CodingCat.dev, a web development education channel run by Alex Patterson.
495
+
// SYSTEM_INSTRUCTION fallback — used when content_config singleton doesn't exist yet in Sanity.
496
+
// The live value is fetched from getConfigValue() inside stepEnriching().
497
+
constSYSTEM_INSTRUCTION_FALLBACK=`You are a content strategist and scriptwriter for CodingCat.dev, a web development education channel run by Alex Patterson.
485
498
486
499
Your style is inspired by Cleo Abram's "Huge If True" — you make complex technical topics feel exciting, accessible, and important. Key principles:
487
500
- Start with a BOLD claim or surprising fact that makes people stop scrolling
@@ -813,7 +826,8 @@ export async function GET(request: NextRequest) {
813
826
constresults: StepResult[]=[];
814
827
815
828
// Phase 1: Stuck detection — runs FIRST, no external API calls
constSYSTEM_INSTRUCTION=`You are a content strategist and scriptwriter for CodingCat.dev, a web development education channel run by Alex Patterson.
115
+
// SYSTEM_INSTRUCTION fallback — used when content_config singleton doesn't exist yet in Sanity.
116
+
// The live value is fetched from getConfigValue() inside the GET handler.
117
+
constSYSTEM_INSTRUCTION_FALLBACK=`You are a content strategist and scriptwriter for CodingCat.dev, a web development education channel run by Alex Patterson.
115
118
116
119
Your style is inspired by Cleo Abram's "Huge If True" — you make complex technical topics feel exciting, accessible, and important. Key principles:
117
120
- Start with a BOLD claim or surprising fact that makes people stop scrolling
@@ -330,10 +333,11 @@ async function createSanityDocuments(
0 commit comments