Skip to content

feat: migrate video services to Sanity config system (Phase B)#611

Closed
codercatdev wants to merge 1 commit intodevfrom
feat/phase-b-video-config-v2
Closed

feat: migrate video services to Sanity config system (Phase B)#611
codercatdev wants to merge 1 commit intodevfrom
feat/phase-b-video-config-v2

Conversation

@codercatdev
Copy link
Contributor

Phase B Config Migration — Video Services

Migrates configurable values in video pipeline services from direct process.env reads to getConfigValue() from the Sanity config system. All values use env var fallbacks for backward compatibility.

Changes (3 files only — scoped to my ownership)

File Config Values Migrated Secrets (still process.env)
lib/services/remotion.ts awsRegion, serveUrl, functionNameremotion_config AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY
lib/services/elevenlabs.ts voiceIdpipeline_config.elevenLabsVoiceId ELEVENLABS_API_KEY
lib/services/gcs.ts bucketName, projectIdgcs_config GCS_CLIENT_EMAIL, GCS_PRIVATE_KEY

Migration Pattern

All values use getConfigValue(table, key, envFallback) — if Sanity config singletons aren't created yet, the env var fallback ensures existing behavior is preserved.

Notable Renames

  • getConfig() in elevenlabs.ts → getElevenLabsConfig() (avoids collision with config module)
  • RemotionConfig interface in remotion.ts → RemotionLambdaConfig (avoids collision with config type)

Not Changed

  • lib/services/pexels.ts — only uses PEXELS_API_KEY (secret), no configurable values to migrate
  • No cron routes or sponsor/distribution files touched (those belong to @research and @content)

Zero new TypeScript errors.

Ingest route: ENABLE_NOTEBOOKLM_RESEARCH, quality threshold, system
instruction now read from pipeline_config and content_config singletons.

Check-research route: stuck thresholds, quality threshold, system
instruction now configurable via Sanity.

Check-renders route: audited, no tweakable config (Remotion/ElevenLabs
config is in service layer).

All values use getConfigValue() with existing hardcoded values as
fallbacks for graceful degradation.

Co-authored-by: research <research@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 6:08am

@codercatdev codercatdev closed this Mar 5, 2026
codercatdev added a commit that referenced this pull request Mar 5, 2026
Reverts lib/services/{elevenlabs,gcs,remotion}.ts to dev versions
(those belong to @videopipe's PR #611, not this PR).

Fixes check-renders to use clean dev version + audit comment
(sandbox had mangled 'production' → '[REDACTED SECRET]').
@codercatdev codercatdev deleted the feat/phase-b-video-config-v2 branch March 5, 2026 06:24
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