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:
parent
06a0051c51
commit
65601e5ad6
1 changed files with 4 additions and 1 deletions
|
@ -8,7 +8,10 @@ frontend:
|
||||||
commands:
|
commands:
|
||||||
- echo "Build started on `date`"
|
- echo "Build started on `date`"
|
||||||
- echo "Configuring environment variables..."
|
- 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
|
- npm run build
|
||||||
artifacts:
|
artifacts:
|
||||||
baseDirectory: .next
|
baseDirectory: .next
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue