Skip to content

Commit 4bc8d93

Browse files
committed
fix: return handler, don't await
1 parent 4c93fad commit 4bc8d93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime/src/templates/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const getNetlifyNextServer = (NextServer: NextServerType) => {
4747
res.setHeader('x-nextjs-cache', 'REVALIDATED')
4848
res.send()
4949
} else {
50-
await handler(req, res, parsedUrl)
50+
return handler(req, res, parsedUrl)
5151
}
5252
}
5353
}

0 commit comments

Comments
 (0)