#✅ - what "backend" section is responsible for in amplify.yaml file?
4 messages · Page 1 of 1 (latest)
Here's an example of how the backend section would look like in the amplify/yml file for a fullstack Gen 2 app:
version: 1
backend:
phases:
build:
commands:
- npm ci --cache .npm --prefer-offline
- npx ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID
frontend:
phases:
build:
commands:
- npm run build
artifacts:
baseDirectory: .next
files:
- '**/*'
cache:
paths:
- .next/cache/**/*
- .npm/**/*
- node_modules/**/*