Files
omnivore/packages/puppeteer-parse
dependabot[bot] bb7ea78e8f Bump puppeteer-core from 13.7.0 to 15.3.2
Bumps [puppeteer-core](https://github.com/puppeteer/puppeteer) from 13.7.0 to 15.3.2.
- [Release notes](https://github.com/puppeteer/puppeteer/releases)
- [Changelog](https://github.com/puppeteer/puppeteer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/puppeteer/puppeteer/compare/v13.7.0...v15.3.2)

---
updated-dependencies:
- dependency-name: puppeteer-core
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-11 21:35:51 +00:00
..
2022-05-09 11:11:13 -07:00
2022-02-11 09:24:33 -08:00
2022-02-11 09:24:33 -08:00
2022-05-12 17:53:28 +08:00
2022-05-12 17:53:28 +08:00
2022-05-12 17:53:28 +08:00
2022-05-05 19:25:09 +08:00
2022-02-11 09:24:33 -08:00
2022-02-11 09:24:33 -08:00
2022-02-11 09:24:33 -08:00
2022-02-11 09:24:33 -08:00
2022-05-18 11:28:33 +08:00

Puppeteer parsing function handler

This workspace is used to provide the GCF for the app to hande requests for the article parsing via Puppeteer.

Using locally

Copy .env.example file to .env file: cp .env.example .env

Run yarn start to start the Google Cloud Function locally (Works without hot reloading).

After this, you should be able to access the functon on http://localhost:8080/puppeteer

Deployment

To deploy the function use the following command:

gcloud functions deploy puppeteer --runtime nodejs12 --trigger-http --memory 1GB --set-env-vars REST_BACKEND_ENDPOINT=<backend-address>,JWT_SECRET=<jwt-secret>

where:

<backend-address> - address of the backend server (e.g "http://localhost:4000")

<jwt-secret> - JWT secret that the backend server is using (e.g "some_secret")