Use `pg` in Pages Function?
I want to access a PostgreSQL database in a function that will be deployed via Cloudflare Pages. Workers supports using
But I can not make it work with the Functions in Pages. I get errors like this on
If I understand the error message correctly, I am supposed to do
pg, the common Node PostgreSQL database. But I can not make it work with the Functions in Pages. I get errors like this on
pnpm wrangler pages dev . -:If I understand the error message correctly, I am supposed to do
pnpm wrangler pages dev . --compatibility-flag="nodejs_compat" - but that returns exactly the same error.
node_compat (which sounds similar, but it something very different) - but that does not seem to exist for Pages)