If you're using Cloudflare with PlanetScale, for the love of god don't forget to set this config property* in wrangler (like I did).
If this region doesn't match your PlanetScale's region you're almost certainly paying at least 20ms extra latency on each query/update, for no good reason.
*while considering tradeoffs - other external data sources (in other regions), you'll hurt LCP on pages with zero db access, etc
@VicVijayakumar will elaborate as needed
1
3 comments