Edge functions are not faster for everything. After moving 4 client headless-WP sites to the edge selectively, here is the routing decision we landed on.
“Move everything to the edge” is bad advice. Edge runtime has cold start advantages but Node.js advantages for anything that does heavy work or talks to a database close to it. Here is the routing pattern we ship now for headless WordPress on Next.js + Vercel.
On one client site (200k pageviews/mo), moving cached pages to the edge dropped p75 TTFB from 480ms to 60ms in Europe and Asia, with US p75 unchanged (WP is in iad1). The contact-form API stayed on Node because it talks to WP, Mailgun and Slack in sequence; we did not want to multiply the latency.
If you are running headless WordPress and weighing an edge migration, our web development team has a one-week audit that maps each route to its right runtime. Get in touch.