fix build again

This commit is contained in:
Dreamgineer
2025-10-28 02:36:01 -04:00 Unverified
parent 73ebbfe7d2
commit 53d139553a
+2
View File
@@ -57,6 +57,8 @@ export async function GET() {
const channelId = process.env.YOUTUBE_CHANNEL_ID;
const apiKey = process.env.YOUTUBE_API_KEY;
if (!apiKey || !channelId) return NextResponse.json<YoutubeLiveInfo>("none");
const response = await fetch(
`https://www.googleapis.com/youtube/v3/search?part=snippet&channelId=${channelId}&eventType=live&type=video&maxResults=1&key=${apiKey}`,
{