Skip to content

Commit

Permalink
feat: add args to speed up puppeteer
Browse files Browse the repository at this point in the history
  • Loading branch information
junseublim committed Dec 29, 2024
1 parent d41412b commit 0a782d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/board/api/screenshot/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ type RequestBodyType = {

const initializeBrowser = async () => {
const browser = await puppeteer.launch({
protocolTimeout: 360000,
timeout: 60000,
args: [
'--disable-gpu',
'--disable-dev-shm-usage',
Expand Down

0 comments on commit 0a782d3

Please sign in to comment.