From eab1c69c7dead49684f555b06c8d13dee1351a99 Mon Sep 17 00:00:00 2001 From: keyan Date: Thu, 8 Jul 2021 10:14:31 -0500 Subject: [PATCH] don't delay capture --- pages/api/capture/[[...path]].js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/api/capture/[[...path]].js b/pages/api/capture/[[...path]].js index 4fa6fff1..042983dc 100644 --- a/pages/api/capture/[[...path]].js +++ b/pages/api/capture/[[...path]].js @@ -4,7 +4,7 @@ import path from 'path' export default async function handler (req, res) { const url = process.env.SELF_URL + '/' + path.join(...(req.query.path || [])) res.setHeader('Content-Type', 'image/png') - const streams = await new Pageres({ crop: true, delay: 1 }) + const streams = await new Pageres({ crop: true }) .src(url, ['600x300']) .run() res.status(200).end(streams[0])