Merge pull request #7 from derekslenk/amplify-updates

Fix Amplify environment variable configuration
This commit is contained in:
Derek Slenk 2025-06-27 14:58:38 -04:00 committed by GitHub
commit c26f2e3d98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 47206 additions and 47183 deletions

20
amplify.yml Normal file
View file

@ -0,0 +1,20 @@
version: 1
frontend:
phases:
preBuild:
commands:
- npm ci
build:
commands:
- env | grep YOUTUBE_API_KEY || echo "YOUTUBE_API_KEY not found in environment"
- npm run build
artifacts:
baseDirectory: .next
files:
- '**/*'
cache:
paths:
- node_modules/**/*
- .next/cache/**/*
buildPath: /
appRoot: /

View file

@ -24,6 +24,9 @@ const nextConfig: NextConfig = {
},
],
},
env: {
YOUTUBE_API_KEY: process.env.YOUTUBE_API_KEY || '',
},
};
export default nextConfig;