Amplify yml
version: 1
frontend:
phases:
preBuild:
commands:
- nvm use 18
- npm install
build:
commands:
- npm run build
artifacts:
baseDirectory: .next
files:
- '**/*'
cache:
paths:
- node_modules/**/*