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/**/*