Skip to content

Commit 5655947

Browse files
committed
Fixed Next 14 body parsing
1 parent a50ed8a commit 5655947

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/next/app/endpoint.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export const visitor =
113113

114114
if (validator) {
115115
const validation = validator.safeParse({
116-
...request.body,
116+
...(await request.json()),
117117
...Object.fromEntries(request.nextUrl.searchParams.entries()),
118118
...params,
119119
});

0 commit comments

Comments
 (0)