feat: add caching to thumbnail creator

This commit is contained in:
2024-02-24 04:56:53 +00:00
parent fc1c1f4e29
commit 06b864055c
2 changed files with 31 additions and 10 deletions
+1
View File
@@ -28,6 +28,7 @@ export const screenshot = async (slug: string) => {
closeHandler = setTimeout(() => {
browser?.close();
browser = null;
closeHandler = null;
}, 60000);