Simplify to just use environment variables
- Remove unnecessary Lambda function and API route - Remove backend deployment from amplify.yml - Just use process.env.YOUTUBE_API_KEY directly - Keep it simple - no need for complex secret management 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
2524e0cb27
commit
33d4a1119a
8 changed files with 3517 additions and 4521 deletions
|
@ -1,10 +1,4 @@
|
|||
version: 1
|
||||
backend:
|
||||
phases:
|
||||
build:
|
||||
commands:
|
||||
- npm ci
|
||||
- npx ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID
|
||||
frontend:
|
||||
phases:
|
||||
preBuild:
|
||||
|
@ -12,9 +6,6 @@ frontend:
|
|||
- 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue