how does vercel take screenshot?

Basically, how can I do something like this in my site?
4 Replies
Lopen
Lopen15mo ago
Puppeteer or Playwright they both have methods of
page.screenshot
page.screenshot
So basically use any of the 2 then visit the page using there headless flag Then use the screenshot method and then save it and then you can upload it to s3 or and link it to the user so avoid space wasted nd unnecessary calls so after a new deployment you run the process again and put a fresh image
Lopen
Lopen15mo ago
Screenshots | Playwright
Here is a quick way to capture a screenshot and save it into a file:
Tom
Tom15mo ago
awesome ill try that ty
Want results from more Discord servers?
Add your server