diff --git a/serverless.yml b/serverless.yml index 1781ffe..bcc6775 100644 --- a/serverless.yml +++ b/serverless.yml @@ -16,13 +16,14 @@ package: - '!./test.js' - '!./twitterlogin.js' - '!./README.md' + - '!node_modules/puppeteer/.local-chromium/**' provider: name: aws runtime: nodejs18.x stage: prod region: eu-west-1 - timeout: 60 + timeout: 90 iam: role: statements: @@ -42,6 +43,8 @@ functions: instagram: handler: instagram.handler + layers: + - arn:aws:lambda:eu-west-1:725824641220:layer:chromium:3 # Chromium v117 events: - schedule: cron(0 20 ? * FRI *)