You don't. You write your backend code and vercel (and others) turn it into serverless functions that can be deployed on AWS or Cloudflare. Or whoever else decides to offer serverless functions. Or you extract your backend and host it yourself. You're not vendor locking yourself.