feat: chat widget
Build and Push Image / build-backend (push) Successful in 2m42s
Build and Push Image / build-frontend (push) Successful in 4m1s
Build and Push Image / push (push) Successful in 2m5s

This commit is contained in:
2026-07-28 11:24:20 +07:00 Unverified
parent d9f988de9b
commit 4d0f459bdb
5 changed files with 85 additions and 6 deletions
+7 -3
View File
@@ -66,8 +66,10 @@ export async function GET() {
},
);
if (!response.ok)
throw new Error(`YouTube API error: ${response.statusText}`);
if (!response.ok) {
console.error(`YouTube API error: ${response.statusText}`);
return NextResponse.json("none");
}
const data: APISearchResponse = await response.json();
@@ -88,4 +90,6 @@ export async function GET() {
return NextResponse.json<YoutubeLiveInfo>(res);
}
export const revalidate = 60;
export const POST = GET;
export const revalidate = 60;