cheatingchelsea/amplify.yml
Derek Slenk b03225cf76 Configure Amplify Gen 2 backend with secrets
- Add secret definition to backend.ts using proper Amplify Gen 2 syntax
- Update amplify.yml to include backend build phase
- This should properly expose secrets as environment variables

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-27 15:51:57 -04:00

26 lines
No EOL
593 B
YAML

version: 1
backend:
phases:
build:
commands:
- npm ci --cache .npm
- npx ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID
frontend:
phases:
preBuild:
commands:
- npm ci
build:
commands:
- echo "Build started on `date`"
- echo "Available environment variables:"
- printenv | grep -E "(YOUTUBE|AMPLIFY)" || echo "No relevant env vars found"
- npm run build
artifacts:
baseDirectory: .next
files:
- '**/*'
cache:
paths:
- node_modules/**/*
- .next/cache/**/*