Repository navigation
fix: YouTube API v3 worker deploy + resolve node-checks lint failures - #317
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
…deploy - Reformat functions/.eslintrc.js from minified single-line to proper multi-line style; the 40 ESLint errors (max-len, key-spacing, etc.) blocked the node-checks job with --max-warnings 0 - Add deploy-worker CI job to .circleci/config.yml that runs wrangler deploy on main branch after node-checks passes - Fix functions/package.json: remove duplicate firebase-admin key, remove invalid lint dependency, pin typescript to ^5.7.0 (^6.0.0 does not exist and caused npm ci to fail) - Update functions/package-lock.json to match cleaned package.json The youtube-worker.ts (src/) already implements YouTube Data API v3: GET /api/channel - channel statistics and snippet GET /api/videos - uploads playlist with pagination GET /api/search - keyword search scoped to channel GET / - health + endpoint manifest Falls back to demo data when YOUTUBE_API_KEY is absent. 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 | ed2cdce | Nov 02 2026, 03:33 AM |
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
ytstudio | ed2cdce | Nov 02 2026, 03:33 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
node-checkslint failure —functions/.eslintrc.jswas minified to a single 483-char line, causing 40 ESLint errors (max-len, key-spacing, comma-spacing, eol-last) that failed the job with--max-warnings 0. Reformatted to proper multi-line style; lint and TypeScript type-check now both pass cleanly.functions/package.json— removed a duplicatefirebase-adminkey, removed a spuriouslint: ^1.2.2dependency, and pinnedtypescriptto^5.7.0(the declared^6.0.0does not exist on npm, causingnpm cito fail).functions/package-lock.json— regenerated to match the correctedpackage.json.deploy-workerCI job in.circleci/config.yml— runswrangler deploy src/youtube-worker.ts --name ytstudioonmainbranch only, afternode-checkspasses, usingCLOUDFLARE_API_TOKENenv var.YouTube API v3 Worker (
src/youtube-worker.ts)The Cloudflare Worker already implements a full YouTube Data API v3 proxy for channel
UCrjJP_SHUeCmqpTSHJCXkdA(Ruh Al Tarikh):GET /or/healthGET /api/channelGET /api/videosGET /api/search?q=…All endpoints fall back to demo data when
YOUTUBE_API_KEYis absent.Test plan
node-checksjob passes with--max-warnings 0deploy-workerjob triggers on merge tomain/healthendpoint returns{"status":"healthy",...}/api/videosreturns demo data when no API key is boundhttps://app.circleci.com/agents/gh/ruhdevops/chat/abdc44fe-072f-45fd-8ea0-ab67935074a4