TypeError: ctx.sls.service.package.include.push is not a function
TypeError: ctx.sls.service.package.include.push is not a function
我正在尝试将静态文件包含在我的 lambda 函数中。我在尝试部署时收到此错误:
TypeError: ctx.sls.service.package.include.push is not a function
这是我serverless.yml的相关部分。
package:
include: ../shared/static/**
问题是 package.include
需要一个数组,但我向它传递了一个字符串。在 yaml 中,数组(称为序列)用换行符、破折号和每个元素的 space 表示。
package:
include:
- ../shared/templates/**
我正在尝试将静态文件包含在我的 lambda 函数中。我在尝试部署时收到此错误:
TypeError: ctx.sls.service.package.include.push is not a function
这是我serverless.yml的相关部分。
package:
include: ../shared/static/**
问题是 package.include
需要一个数组,但我向它传递了一个字符串。在 yaml 中,数组(称为序列)用换行符、破折号和每个元素的 space 表示。
package:
include:
- ../shared/templates/**