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

 

相关文章: