GithubHelp home page GithubHelp logo

saasify-sh / puppeteer-serverless Goto Github PK

View Code? Open in Web Editor NEW
30.0 30.0 3.0 43 KB

Puppeteer for both serverless functions and development.

TypeScript 100.00%
chrome lambda puppeteer serverless

puppeteer-serverless's People

Contributors

chrisvxd avatar transitive-bullshit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

puppeteer-serverless's Issues

Allow isDev Flexibility

Hey there, thanks for putting this together. It would be very cool if we could configure which process.env.NODE_ENV would use the locally installed chrome. My use case is that we're using this within Jest, and it's currently failing due to isDev looking specifically for development.

ENOENT: no such file or directory, open '/var/bin/chromium.br'

Jan 18, 12:40:32 UTC
START RequestId: 9d7b87b5-d99a-44ba-9905-3da1d991992d Version: $LATEST
Jan 18, 12:40:32 UTC
2021-01-18T12:40:32.376Z 9d7b87b5-d99a-44ba-9905-3da1d991992d ERROR Invoke Error
{
"errorType": "Error",
"errorMessage": "ENOENT: no such file or directory, open '/var/bin/chromium.br'",
"code": "ENOENT",
"errno": -2,
"syscall": "open",
"path": "/var/bin/chromium.br",
"stack": [
"Error: ENOENT: no such file or directory, open '/var/bin/chromium.br'"
]
}
Jan 18, 12:40:32 UTC
END RequestId: 9d7b87b5-d99a-44ba-9905-3da1d991992d
Jan 18, 12:40:32 UTC
REPORT RequestId: 9d7b87b5-d99a-44ba-9905-3da1d991992d Duration: 10.58 ms Billed Duration: 11 ms Memory Size: 1024 MB Max Memory Used: 77 MB Init Duration: 218.67 ms

serverless install --url https://github.com/AnomalyInnovations/serverless-nodejs-starter --name notes-api

use above command create project, deploy to aws, then get this error.

try this, neither work.
https://stackoverflow.com/questions/59987104/chrome-binary-not-found-on-aws-lambda-using-serverless-and-chrome-aws-lambda-nod

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.