【发布时间】:2017-02-13 21:50:26
【问题描述】:
有人可以帮忙解释一下这个警告信息的含义吗?
无服务器:警告!您将 LAMBDA-PROXY 与函数“indexPage”中的请求/响应配置结合使用。部署期间将忽略此配置。
我相信我了解 LAMDA-PROXY 部分。我很确定这是对 serverless.yml 的“集成”部分的引用:
indexPage:
handler: reporting.index
memorySize: 128
timeout: 15
events:
- http:
path: /
method: post
integration: lambda-proxy
response:
headers:
Content-Type: "'text/html'"
template: $input.path('$')
我不知道它在“请求/响应配置”中引用了什么。
【问题讨论】:
标签: node.js serverless-framework