version: 1 applications: - frontend: phases: preBuild: commands: - nvm use $(cat .nvmrc) || nvm install $(cat .nvmrc) - npm ci --cache .npm --prefer-offline build: commands: - npm run build artifacts: baseDirectory: .next files: - '**/*' cache: paths: - node_modules/**/* - .next/cache/**/* - .npm/**/*