planetscale edge runtime

if i use planetscqle as a db and vercel edge function for the api , the db and the server will be in the same place using the bacit planetscale-js lib or do i have to use this one https://www.npmjs.com/package/@planetscale/edge ? i saw also this article https://planetscale.com/blog/introducing-the-planetscale-serverless-driver-for-javascript but i don't understand the concept of the location that could be in the same region as the server on the edge
npm
@planetscale/edge
A JavaScript client for communicating with PlanetScale Edge API.. Latest version: 0.1.0, last published: 8 months ago. Start using @planetscale/edge in your project by running npm i @planetscale/edge. There are no other projects in the npm registry using @planetscale/edge.
Introducing the PlanetScale serverless driver for JavaScript
You can now use PlanetScale in HTTP-only environments, like Cloudflare Workers, Vercel Edge Functions, and Netlify Edge Functions
1 Reply
samuele
samueleOP2y ago
i think that when the server make a req to the db, in this case planetscale try to find the nearest region to that server right?
Want results from more Discord servers?
Add your server