I wish Next.js talked about this some more and beefed up their API routes.
Writing your BFF in the same codebase, sharing types, and parsing incoming data on the server without filling up the client bundle is a fab experience.
We use Remix in this way. Making calls to multiple endpoints on link prefetch is fantastic for speed
On the surface may sound weird but in practice has actually been pretty great when used mindfully.