serverless-lambda-chrome icon indicating copy to clipboard operation
serverless-lambda-chrome copied to clipboard

Running on local but not on production

Open mithundas79 opened this issue 3 years ago • 0 comments

I was suffering this for now for quiet a few days.... i wrote my pdf generator on aws lambda based on your code logic...

browser = await chromium.puppeteer.launch({
      args: chromium.args,
      defaultViewport: chromium.defaultViewport,
      executablePath: null,
      headless: true
    });

With this config it runs on local very well But -> when i change executablePath: await chromium.executablePath and deploy to lambda the lambda function fails with blank error... can you help if possible.

mithundas79 avatar Aug 19 '20 14:08 mithundas79