我一直在关注无服务器博客文章:https://serverless.com/blog/api-gateway-multiple-services,以此为指南尝试在自定义域下部署服务。但是,我收到以下错误:
发生错误:路径映射-如果基本路径为空,则仅允许一个基本路径映射。
serverless.yml中的相关条目是:
custom:
stage: ${opt:stage, self:provider.stage}
domains:
prod: prod-api.admin.acme.org
qa: qa-api.admin.acme.org
dev: api-dev.admin.acme.org
customDomain:
basePath: “people”
domainName: {self:custom.domains.{self:custom.stage}}
stage: “${self:custom.stage}”
createRoute53Record: true
provider:
name: aws
runtime: nodejs8.10
stage: dev
region: us-east-2
profile: acme-api
environment: {file(env.yml):{self:provider.stage}}
functions:
listUsers:
handler: list_items.list
events:
- http:
path: users
method: get
cors: true
我搞砸了吗?
感谢您的关注……