Using their own Next.js as an example: everything in /pages/ is client app, everything in /api/ is serverless app.
Client talks to the /api/ endpoints, /api/ endpoints talk to your domain services.
Vercel also provide edge-location hosting and caching.