[Netlify serverless] Dependencies are not automatically install in functions

We have a Netflify serverless functions which requires following packages:

  "devDependencies": {
    "playwright-aws-lambda": "^0.4.0",
    "playwright-core": "^0.11.1"
  }

 

maka a netlify.toml fill at root dir:

[build]
    functions = "functions"
    command = "make install"

 

Makefile:

  install:
    cd functions/<folder> && npm i

 

posted @ 2021-03-16 20:04  Zhentiw  阅读(71)  评论(0编辑  收藏  举报