Repository navigation
fix: YouTube API v3 worker CI deploy pipeline - #312
Open
circleci-app[bot] wants to merge 1 commit into
Open
circleci-app[bot] wants to merge 1 commit into
circleci-app[bot] wants to merge 1 commit into
Conversation
- Fix duplicate 'circletui' key in package.json that caused wrangler to emit a parse warning (duplicate-object-key) - Add --env="" flag to wrangler deploy command in CI to suppress the multiple-environments warning and target the top-level config - circleci/config.yml: add deploy-worker job with Cloudflare deployment of src/youtube-worker.ts (ytstudio worker) gated on node-checks passing on the main branch AI-Generated: true
|
|
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
ytstudio | e21860c | Nov 01 2026, 01:29 AM |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
ytstudio | e21860c | Nov 01 2026, 01:29 AM |
❌ Deploy Preview for ytr-studio failed.
|
✅ Deploy Preview for elegant-seahorse-d9d460 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This branch had an error being deployed
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.
Summary
circletuikey inpackage.json— wrangler was emitting aduplicate-object-keywarning during deploy because the dependency appeared twice in thedependenciesobject. Removed the second occurrence and fixed the resulting trailing comma.--env=""to wrangler deploy command in.circleci/config.yml— suppresses the wrangler warning about multiple environments being defined without an explicit target, making CI output cleaner and deploy intent unambiguous.deploy-workerjob in thevalidateworkflow deployssrc/youtube-worker.tsas theytstudioCloudflare Worker with YouTube API v3 endpoints (/api/channel,/api/videos,/api/search) and falls back to demo data whenYOUTUBE_API_KEYis not set.YouTube API v3 Worker
The
ytstudioCloudflare Worker (src/youtube-worker.ts) is already implemented and ready for deploy:GET /GET /api/channelUCrjJP_SHUeCmqpTSHJCXkdAGET /api/videosGET /api/search?q=<query>All endpoints fall back to demo data when
YOUTUBE_API_KEYis absent.Test plan
pnpm install --frozen-lockfile— passes, lockfile unchangednpm --prefix functions run lint -- --max-warnings 0— exit 0npm --prefix functions run build— exit 0 (tsc clean)ruff check .— all checks passedmypy .— no issues in 4 source filespnpm wrangler deploy ... --dry-run— no warnings, 30.92 KiB uploadhttps://app.circleci.com/agents/gh/ruhdevops/chat/9a14969c-b151-4e82-8f80-850870dce06f