Open fartbagxp opened 6 years ago
This is actually a bit complicated because puppeteer and node_module installation for this project exceeds the maximum package size (250MB) for an AWS lambda job.
To get around this issue, we can use serverless-chrome which bundles up a headless binary for chrome for lambda deployment. This means a partial rewrite of how I'm currently using puppeteer.
Instruction guide that seems to be helpful:
watch -n 120 npm start
as a cron job every 120 seconds. This really should be a serverless cron job that feeds and report stats.