Skip to content

Commit e167b9a

Browse files
authored
Update screenshot.ts
1 parent 1f5151b commit e167b9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/screenshot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { NowRequest, NowResponse } from '@vercel/node'
22

3-
module.exports = (req: NowRequest, res: NowResponse) => {
3+
module.exports = async (req: NowRequest, res: NowResponse) => {
44
try {
55
const file = await getScreenshot(req.query.url, req.query.width, req.query.height);
66
res.header('Content-Type', `image/png`);

0 commit comments

Comments
 (0)