当我试图部署到AWS时,由于>缺失或无效的" Path"属性,我会出现错误。
无服务器部署-v#或者无服务器运行 - 观看
# serveless file
service:
name: aws-nodejs-ecma-script
# Add the serverless-webpack plugin
plugins:
- serverless-webpack
provider:
name: aws
runtime: nodejs6.10
functions:
events_get:
handler: get.handler
events:
- http:
method: get
path: test
问题不好。
# solution one
functions:
events_get:
handler: get.handler
events:
- http:
method: get
path: test
# solution two
functions:
events_get:
handler: get.handler
events:
- http: get test
来源:
- https://forum.serverless.com/t/error-on-deploy-missing-missing-or-invalid-path-path-property-in-function/2365
- https://serverless.com/framework/docs/providers/aws/guide/services#contents