Write YOUTUBE_API_KEY to .env.production file

- Echo the API key value to debug if it's actually set
- Write to .env.production file for Next.js to read
- Display contents of .env.production to verify

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Derek Slenk 2025-06-27 15:40:06 -04:00
parent 06a0051c51
commit 65601e5ad6

View file

@ -8,7 +8,10 @@ frontend:
commands:
- echo "Build started on `date`"
- echo "Configuring environment variables..."
- export YOUTUBE_API_KEY="${YOUTUBE_API_KEY}"
- echo "YOUTUBE_API_KEY value: ${YOUTUBE_API_KEY}"
- echo "YOUTUBE_API_KEY=${YOUTUBE_API_KEY}" > .env.production
- echo "Contents of .env.production:"
- cat .env.production
- npm run build
artifacts:
baseDirectory: .next