Update amplify.yml to inject environment variable
- Create .env.production file with YOUTUBE_API_KEY during build - This ensures Next.js can access the environment variable 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
40c2f0c263
commit
3a035e9257
1 changed files with 1 additions and 0 deletions
|
@ -6,6 +6,7 @@ frontend:
|
|||
- npm ci
|
||||
build:
|
||||
commands:
|
||||
- echo "YOUTUBE_API_KEY=$YOUTUBE_API_KEY" >> .env.production
|
||||
- env | grep YOUTUBE_API_KEY || echo "YOUTUBE_API_KEY not found in environment"
|
||||
- npm run build
|
||||
artifacts:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue