danim47c
CDCloudflare Developers
•Created by sanser on 3/31/2024 in #pages-help
postgres in pages
My recomendation is to use Cloudflare Hyperdrive. It manages a kind of connection pool between workers and your database. Also, postgres-js driver is more recommended for serverless environments. Note that you need to set https://developers.cloudflare.com/workers/configuration/compatibility-flags/#nodejs-compatibility-flag.
7 replies