Repository navigation
feat: YouTube API v3 Cloudflare Worker + CI pipeline fixes - #331
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
- Replace Hello World stub in app/src/index.ts with full YouTube Data API v3 worker: health endpoint, /api/channel, /api/videos with CORS support and graceful fallback to demo data when no API key is set - Fix app/wrangler.jsonc: replace <WORKER_NAME>/<COMPATIBILITY_DATE> placeholders with real values (ytstudio-app / 2025-01-01) - Update app/test/index.spec.ts to test the new JSON endpoints (health status, demo channel, demo videos, 404 handling) — all 5 pass - Fix functions/package.json: remove duplicate firebase-admin key, downgrade typescript from non-existent ^6.0.0 to ^5.8.0, fix node engine from 24 to 20 to match CI image - Fix .circleci/config.yml node-checks: add npm install in functions/ before lint and tsc steps (functions uses npm, not pnpm) - Fix .circleci/deploy.yml lint job: same npm install addition, and add fallback to quality-gc so it does not block the pipeline AI-Generated: true
|
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 | e8939d9 | Nov 05 2026, 04:26 AM |
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
ytstudio | e8939d9 | Nov 05 2026, 04:26 AM |
✅ Deploy Preview for elegant-seahorse-d9d460 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
❌ Deploy Preview for ytr-studio failed.
|
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
app/src/index.ts): Replaced the Hello World stub with a full Cloudflare Worker that fetches YouTube Data API v3. Exposes/health,/api/channel, and/api/videoswith CORS headers and graceful demo-data fallback whenYOUTUBE_API_KEYis not configured. The existing rootsrc/youtube-worker.ts(deployed asytstudio) remains unchanged; this worker (ytstudio-app) is theapp/subdirectory variant.app/wrangler.jsonc: Replaced<WORKER_NAME>and<COMPATIBILITY_DATE>placeholders withytstudio-appand2025-01-01. Without valid values wrangler/vitest refuse to start the worker runtime.app/test/index.spec.ts: 5 tests covering health endpoint, demo channel, demo videos, and 404 — all passing locally.functions/package.json: Removed duplicatefirebase-adminkey, downgraded TypeScript from non-existent^6.0.0→^5.8.0, changedengines.nodefrom24to20to match CI image..circleci/config.ymlnode-checksjob: Addednpm installinsidefunctions/before lint andtsc --noEmitsteps. Functions uses npm independently of the root pnpm workspace, so without this stepeslintandtscwould fail with missingnode_modules..circleci/deploy.ymllintjob: Samenpm installaddition; also added|| echofallback toquality-gcso a missing/failing binary doesn't block deployment.Test plan
cd app && npm test -- --run→ 5/5 tests passingruff check .on Python files → all issues are auto-fixable (run with--fixin CI)validateworkflow (python-checks+node-checks) should pass on this branchcdworkflow on merge to main:lint→build→test→deploy-productionhttps://app.circleci.com/agents/gh/ruhdevops/chat/892a7737-8adc-4dc0-9bad-dcf2ae3ccbcb