From ddbd6c27d6c8694e46d6fcac4a26697f828cffc6 Mon Sep 17 00:00:00 2001 From: Derek Slenk Date: Fri, 27 Jun 2025 14:39:37 -0400 Subject: [PATCH] refactor: remove unused fallback video ID and clean up API key logging --- src/app/dadvocate/page.tsx | 1 - src/app/gallery/page.tsx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/dadvocate/page.tsx b/src/app/dadvocate/page.tsx index d2d8b35..f8b7f78 100644 --- a/src/app/dadvocate/page.tsx +++ b/src/app/dadvocate/page.tsx @@ -30,7 +30,6 @@ const videoIds = [ const fallbackData: Video[] = [ { id: 'dbPXoZ_cri8', title: 'Placeholder Dadvocate Video 1' }, { id: 'y2SfYffLZQ4', title: 'Placeholder Dadvocate Video 2' }, - { id: 'CdJLCln1Kjg', title: 'Placeholder Dadvocate Video 3' }, ]; async function getYouTubeVideos(ids: string[]): Promise { diff --git a/src/app/gallery/page.tsx b/src/app/gallery/page.tsx index ca37cf5..3e90d17 100644 --- a/src/app/gallery/page.tsx +++ b/src/app/gallery/page.tsx @@ -33,7 +33,7 @@ const fallbackData: Video[] = [ async function getYouTubeVideos(ids: string[]): Promise { const apiKey = process.env.YOUTUBE_API_KEY; - console.log("Using YouTube API Key:", apiKey ? "Available" : "Not Set"); + if (!apiKey) { console.warn("YOUTUBE_API_KEY environment variable not set. Using hardcoded video titles as fallback."); return fallbackData;