refactor: remove unused fallback video ID and clean up API key logging
This commit is contained in:
parent
eea040d1f3
commit
ddbd6c27d6
2 changed files with 1 additions and 2 deletions
|
@ -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[]> {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue