guys, have you tried running cron that uses puppet...
# help
g
guys, have you tried running cron that uses puppeteer? got an error cannot find module puppeteer/lib/Browser. here are my dependencies "chrome-aws-lambda": "^9.1.0", "puppeteer": "^9.1.1", "puppeteer-core": "^9.1.0"
f
Hey @Gerald, here’s an SST example that uses the 3 packages above inside
Api
.
Cron
should work in similar way. https://serverless-stack.com/chapters/dynamically-generate-social-share-images-with-serverless.html
Let me know if it works of you
g
Thanks @Frank, I just forgot to exlude the chrome-aws-lambda hehehe!