Skip to content

Commit

Permalink
update goto options
Browse files Browse the repository at this point in the history
  • Loading branch information
Shreyaschorge committed Aug 24, 2022
1 parent b204484 commit 80fd8e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ export default async (req: NextApiRequest, res: NextApiResponse) => {
const url = req.query.path as string

await page.goto(url, {
waitUntil: "domcontentloaded"
timeout: 15 * 1000,
waitUntil: "networkidle"
})

const data = await page.screenshot({
Expand Down

0 comments on commit 80fd8e1

Please sign in to comment.