Skip to content

Commit b3956bd

Browse files
committed
fix(#339): await nextjs defaultRouteHandler
1 parent 83ce24c commit b3956bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nextjs/src/routeHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export const createAxiomRouteHandler = <TRequestCreateRouteHandler = NextRequest
193193
if (onSuccess) {
194194
onSuccess(httpData);
195195
} else {
196-
defaultRouteHandlerOnSuccess(logger, httpData);
196+
await defaultRouteHandlerOnSuccess(logger, httpData);
197197
}
198198
};
199199
// TODO: this surely can be written better

0 commit comments

Comments
 (0)