cheatingchelsea/amplify.yml
Derek Slenk 65601e5ad6 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>
2025-06-27 15:40:06 -04:00

23 lines
No EOL
563 B
YAML

version: 1
frontend:
phases:
preBuild:
commands:
- npm ci
build:
commands:
- echo "Build started on `date`"
- echo "Configuring environment variables..."
- 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
files:
- '**/*'
cache:
paths:
- node_modules/**/*
- .next/cache/**/*