From 65601e5ad6b6cd34f9eff0c29e6c7dcb386d6568 Mon Sep 17 00:00:00 2001 From: Derek Slenk Date: Fri, 27 Jun 2025 15:40:06 -0400 Subject: [PATCH] Write YOUTUBE_API_KEY to .env.production file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- amplify.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/amplify.yml b/amplify.yml index 6ea8255..cdb93e8 100644 --- a/amplify.yml +++ b/amplify.yml @@ -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