Skip to content

Commit 103e37b

Browse files
coffee-mugfurrypet
andauthored
Lucas/20984 browser rendering screenshot fails (#21031)
* Fix - #20984 - removed path parameter from page.screenshot call so puppeteer does not try to call fs to store images * Fix: removed change to first sentence --------- Co-authored-by: Lucas Kostka <[email protected]>
1 parent 4e37c6e commit 103e37b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/browser-rendering/workers-binding-api/browser-rendering-with-DO.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export class Browser {
172172
await page.setViewport({ width: width[i], height: height[i] });
173173
await page.goto("https://workers.cloudflare.com/");
174174
const fileName = "screenshot_" + width[i] + "x" + height[i];
175-
const sc = await page.screenshot({ path: fileName + ".jpg" });
175+
const sc = await page.screenshot();
176176

177177
await this.env.BUCKET.put(folder + "/" + fileName + ".jpg", sc);
178178
}

0 commit comments

Comments
 (0)