Repository navigation
feat: YouTube API worker deploy + workflow & package fixes - #263
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
- Add worker-checks CI job: TypeScript validates src/youtube-worker.ts and checks wrangler config on every branch - Add worker-deploy CI job: deploys ytstudio Cloudflare Worker on main branch using CLOUDFLARE_API_TOKEN (gracefully skipped if token absent) - Fix node-checks job: run npm install before lint and use npm run build instead of raw tsc invocation so devDeps are present - Fix root package.json: remove duplicate circletui dependency - Fix functions/package.json: remove duplicate firebase-admin (keep ^13.9.0), remove invalid lint runtime dependency - Fix app/wrangler.jsonc: replace <WORKER_NAME> and <COMPATIBILITY_DATE> placeholders with real values (ytstudio-app / 2025-01-01) 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 | 4b298cb | Oct 20 2026, 12:24 AM |
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
ytstudio | 4b298cb | Oct 20 2026, 12:24 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
worker-checksCI job: validatessrc/youtube-worker.tsvia TypeScript and verifies wrangler config on every branchworker-deployCI job: deploys theytstudioCloudflare Worker (YouTube API v3 proxy) onmain— gracefully skips ifCLOUDFLARE_API_TOKENis not setnode-checksCI job: addednpm installbefore lint so devDependencies are available; switched tonpm run build(uses localtsc) instead of relying on a globally-installed TypeScriptpackage.json(root): removed duplicatecircletuidependency that caused pnpm parse warningsfunctions/package.json: removed duplicatefirebase-adminkey (kept^13.9.0), removed invalidlintruntime dependencyapp/wrangler.jsonc: replaced<WORKER_NAME>and<COMPATIBILITY_DATE>placeholders withytstudio-appand2025-01-01Worker Overview
src/youtube-worker.tsis a Cloudflare Worker that proxies YouTube Data API v3 calls:GET /or/health— health check + endpoint listingGET /api/channel— channel statistics forUCrjJP_SHUeCmqpTSHJCXkdAGET /api/videos— paginated uploads playlist with category detectionGET /api/search?q=...— channel-scoped video searchFalls back to demo data if
YOUTUBE_API_KEYis not bound.Test plan
python-checks,node-checks, andworker-checkswithout errorsworker-deployon merge tomainCLOUDFLARE_API_TOKENenv var is set in CircleCI project settings, worker deploys successfullyhttps://app.circleci.com/agents/gh/ruhdevops/chat/a9cef362-09f3-4417-886c-c01c1d53b3df