hotfix: hide links to hacked channel
Build and Push Image / build-backend (push) Successful in 26s
Build and Push Image / build-frontend (push) Successful in 1m58s
Build and Push Image / push (push) Successful in 51s

This commit is contained in:
2026-09-22 08:56:24 +07:00 Unverified
parent 06e66d2514
commit 4531163e46
2 changed files with 13 additions and 11 deletions
+2 -1
View File
@@ -63,7 +63,8 @@ export async function GET(req: NextRequest) {
const channelId = process.env.YOUTUBE_CHANNEL_ID;
const apiKey = process.env.YOUTUBE_API_KEY;
if (!apiKey || !channelId) return NextResponse.json<YoutubeLiveInfo>("none");
// TEMPORARY: Hacked channel
if (!apiKey || !channelId && true) return NextResponse.json<YoutubeLiveInfo>("none");
const response = await youtubeCache.fetch(
`https://www.googleapis.com/youtube/v3/search?part=snippet&channelId=${channelId}&eventType=live&type=video&maxResults=1&key=${apiKey}`,