在serverless.yml中,在自定义设置下,我有以下代码(此处带有伪值):
customDomain:
domainName: myhost.mydomain.com
basePath: ''
stage: ${self:provider:stage}
createRouteS3Record: true
endpointType: 'edge'
securityPolicy: tls_1_2
certificateArn: 'arn:aws:acm:.................'
hostZoneId: 'P4OCK4S1PSTZK'
当我执行无服务器部署时,一切都会顺利进行。为我的功能正确生成了Api。
(在函数下,我有events: http
)
但是,在生成生成API的lambda部署之后,出现以下错误:
Error: Error: Unable to setup base domain mappings for myhost.mydomain.com
除https://forum.serverless.com/t/error-unable-to-setup-base-domain-mappings/11395外,我没有得到太多其他信息 如果那样的话,不知道如何在无服务器中包含api版本。