有没有人为 next.js 部署尝试过 AWS-Amplify?我总是收到此错误,即“纱线构建”成功但未部署且失败。
Git repo 配置了自动部署,aws-amplify 的 YML 文件如下。
version: 1
frontend:
phases:
preBuild:
commands:
- rm -rf node_modules
- yarn install
build:
commands:
- yarn run build
artifacts:
baseDirectory: .next
files:
- '**/*'
cache:
paths:
- node_modules/**/*
答案 0 :(得分:0)
在你的构建中使用这个 yaml 文件
~PatientID, ~A1, ~A2, ~B1, ~B2,
#--|---|---|---|---
101, "01:01", "02:01", "07:01", "51:01",
102, "02:01", "03:01", "08:01", "51:01",
103, "01:01", "03:01", "07:01", "08:01",
104, "03:01", "68:01", "14:01", "08:01"
)