- Simplified amplify.yml to export env var during build - Updated both gallery and dadvocate pages to check multiple env var names - Added debugging to show available env vars - Added publicRuntimeConfig and serverRuntimeConfig to next.config.ts - Created config helper in lib/config.ts 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
20 lines
No EOL
412 B
YAML
20 lines
No EOL
412 B
YAML
version: 1
|
|
frontend:
|
|
phases:
|
|
preBuild:
|
|
commands:
|
|
- npm ci
|
|
build:
|
|
commands:
|
|
- echo "Build started on `date`"
|
|
- echo "Configuring environment variables..."
|
|
- export YOUTUBE_API_KEY="${YOUTUBE_API_KEY}"
|
|
- npm run build
|
|
artifacts:
|
|
baseDirectory: .next
|
|
files:
|
|
- '**/*'
|
|
cache:
|
|
paths:
|
|
- node_modules/**/*
|
|
- .next/cache/**/* |