From 3a035e9257f629cc6076fec0139483a719cd6580 Mon Sep 17 00:00:00 2001 From: Derek Slenk Date: Fri, 27 Jun 2025 15:12:52 -0400 Subject: [PATCH] Update amplify.yml to inject environment variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- amplify.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/amplify.yml b/amplify.yml index 3626c7b..f085d85 100644 --- a/amplify.yml +++ b/amplify.yml @@ -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: