refactor: remove unused fallback video ID and clean up API key logging

This commit is contained in:
Derek Slenk 2025-06-27 14:39:37 -04:00
parent eea040d1f3
commit ddbd6c27d6
2 changed files with 1 additions and 2 deletions

View file

@ -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<Video[]> {

View file

@ -33,7 +33,7 @@ const fallbackData: Video[] = [
async function getYouTubeVideos(ids: string[]): Promise<Video[]> {
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;