Amazon Linux 2023で以下のymlを設定する
version: 1
backend:
phases:
preBuild:
commands:
build:
commands:
- '# Execute Amplify CLI with the helper script'
- amplifyPush --simple
frontend:
phases:
preBuild:
commands:
- npm ci
- sudo yum install git-lfs -y
- git lfs install
- git pull
build:
commands:
- npm run build
artifacts:
baseDirectory: .next
files:
- '**/*'
cache:
paths:
- node_modules/**/*