release: Config-to-Sanity Phase A+B — 6 singletons + all routes migrated#614
Merged
codercatdev merged 3 commits intomainfrom Mar 5, 2026
Merged
release: Config-to-Sanity Phase A+B — 6 singletons + all routes migrated#614codercatdev merged 3 commits intomainfrom
codercatdev merged 3 commits intomainfrom
Conversation
…609) Migrates sponsor-outreach cron and distribution webhook to Sanity config singletons. cooldownDays, maxOutreachPerRun, rateCardTiers from sponsor_config. resendFromEmail, notificationEmails from distribution_config. geminiModel from pipeline_config. All use getConfig()/getConfigValue() with backward-compatible fallbacks. Secrets stay as process.env.
Migrates video service config from process.env to Sanity config singletons. remotion.ts: awsRegion, serveUrl, functionName from remotion_config. elevenlabs.ts: voiceId from pipeline_config. gcs.ts: bucketName, projectId from gcs_config. All use getConfigValue() with env var fallbacks. Secrets (AWS keys, API keys, GCS credentials) stay as process.env. Renamed RemotionConfig→RemotionLambdaConfig and getConfig→getElevenLabsConfig to avoid collisions with config module.
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.
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
codercatdev
added a commit
that referenced
this pull request
Mar 5, 2026
Merge pull request #614 from CodingCatDev/dev
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Config-to-Sanity: Phase A + B
Moves all tweakable pipeline config from environment variables to Sanity singleton documents. Alex can now edit Gemini model, voice ID, quality thresholds, stuck timeouts, RSS feeds, rate card tiers, email templates, and more — directly from Sanity Studio, no redeployment needed.
Phase A — Foundation (PR #607)
pipelineConfig,remotionConfig,contentConfig,sponsorConfig,distributionConfig,gcsConfigsanity.config.ts+singletonPluginlib/config.tsrewritten:getConfig()/getConfigValue()with 5-min stale-while-revalidate cachelib/types/config.tsupdated to camelCase with Sanity_id/_type/_updatedAtPhase B — Route Migration (PRs #609, #612, #613)
ingest,check-research):enableNotebookLmResearch,qualityThreshold,systemInstruction,stuckTimeoutMinutesremotion.ts,elevenlabs.ts,gcs.ts):awsRegion,serveUrl,functionName,voiceId,bucketName,projectIdsponsor-outreach,sanity-distribute,resend-notify,gemini-outreach):cooldownDays,maxOutreachPerRun,rateCardTiers,resendFromEmail,notificationEmails,geminiModelKey Design Decisions
process.env— API keys, credentials, tokens are NOT in SanitygetConfigValue()— backward compatible if singletons aren't created yetinitialValuedefaults on all schema fields — singletons create with sensible valuesBuild Status
tsc --noEmit— only pre-existingsanity-revalidateerror, same on main)