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 1bab145 commit 5167b57
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 2 deletions.
47 changes: 46 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"next": "14.2.4",
"next-auth": "^5.0.0-beta.20",
"prettier-plugin-tailwindcss": "^0.6.5",
"puppeteer": "^23.11.0",
"puppeteer-core": "^23.11.0",
"react": "^18",
"react-device-detect": "^2.2.3",
Expand Down
2 changes: 1 addition & 1 deletion src/app/board/api/screenshot/route.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { NextResponse } from 'next/server'
import puppeteer from 'puppeteer-core'
import puppeteer from 'puppeteer'

export async function POST(request: Request) {
const { boardId, polaroids }: { boardId: string; polaroids: string[] } =
Expand Down

0 comments on commit 5167b57

Please sign in to comment.