在 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 版本.