server function call printing non-null within implementation, returning null from within API route
Hi--I have a server function that I'm calling from an API route, and when I log the return value in the API route it is null, however when I log from within the server function logic I see that it is returning non-null... how do I debug this?
2 Replies
exotic-emerald•7mo ago
you cannot call server functions from API routes
just move the logic in a separate "standard" function and call that from both API routes and server function
harsh-harlequinOP•7mo ago
ah ok TIL