feat: puppeteer timeout

This commit is contained in:
DIYgod
2024-08-23 16:08:35 +08:00
parent b7ec2109aa
commit 6d1a19a9bd
+6 -3
View File
@@ -54,9 +54,12 @@ const outPuppeteer = async (
}
: options
));
setTimeout(() => {
browser.close();
}, 30000);
setTimeout(
() => {
browser.close();
},
5 * 60 * 1000
);
return browser;
};