我正在尝试部署Netlify Lambda函数,但出现此构建错误:
...
11:00:00 PM: Build script success
11:00:00 PM: Failing build: Failed to build site
11:00:00 PM: failed during stage 'building site': Deploy directory 'build' does not exist
package.json
...
"scripts": {
"build": "netlify-lambda build src/lambda"
},
...
我想念什么?
答案 0 :(得分:1)
尝试将“纱线”添加到“构建”脚本中,如下所示:
...
"scripts": {
"build": "yarn netlify-lambda build src/lambda"
},
...