chore: update dependencies and add AWS Amplify packages
- Added aws-amplify and related packages to dependencies. - Updated TypeScript and added tsx to devDependencies. - Modified gallery page to log the availability of the YouTube API key.
This commit is contained in:
parent
82aec67cf5
commit
eea040d1f3
10 changed files with 37087 additions and 10 deletions
|
@ -29,12 +29,11 @@ const videoIds = [
|
|||
const fallbackData: Video[] = [
|
||||
{ id: 'DK14VZ4Fyl4', title: 'Life Coach CHELSEA SMALLWOOD Is SUING Her HUSBANDS Ex Wife... It Gets WORSE' },
|
||||
{ id: '-6Zftd8C7NE', title: "The Husband Stealing, Cheating, \"TikTok Life Coach\"" },
|
||||
{ id: '1f_u41c3y_s', title: "The Bizarre Story of Chelsea Smallwood: The Cheating 'Coach'" },
|
||||
];
|
||||
|
||||
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