Skip to content

Commit

Permalink
feat: add errorMessage to screenshot api
Browse files Browse the repository at this point in the history
  • Loading branch information
junseublim committed Dec 18, 2024
1 parent 5167b57 commit bd96d6b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/board/api/screenshot/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ export async function POST(request: Request) {

const url = `${process.env.URL}/board/${boardId}/screenshot?${polaroidIdsSearchParam}`

const browser = await puppeteer.launch()
const browser = await puppeteer.launch({
args: ['--no-sandbox', '--disable-setuid-sandbox'],
})
const page = await browser.newPage()
await page.setViewport({
width: 1080,
Expand Down

0 comments on commit bd96d6b

Please sign in to comment.