Skip to content

Commit

Permalink
Fix nextjs router response
Browse files Browse the repository at this point in the history
  • Loading branch information
DZakh committed Feb 12, 2025
1 parent 7ded30d commit 5e691a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Rest.res
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ let singleRouteNextJsHandler = (route, implementation): nextJsHandler => {
})
| None => ()
}
res["status"](%raw(`data.status || 200`))
res["status"](%raw(`data.status || 200`))["json"](data["data"])
} catch {
| S.Raised(error) =>
Js.Exn.raiseError(
Expand Down
2 changes: 1 addition & 1 deletion src/Rest.res.js

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

0 comments on commit 5e691a1

Please sign in to comment.