6 Replies
As I understand the package: https://github.com/porsager/postgres is compatible with cloudflare pages and I wouldn't have to use nodejs compat. And even if I do it does not work
GitHub
GitHub - porsager/postgres: Postgres.js - The Fastest full featured...
Postgres.js - The Fastest full featured PostgreSQL client for Node.js, Deno, Bun and CloudFlare - porsager/postgres
The code:
Are you sure those errors are coming from Postgres.js's code, i.e it goes away if you stop importing it?
Yeah, removing it works fine
Also here is the repo: https://github.com/juliomuhlbauer/hono-pages/tree/postgresjs
GitHub
GitHub - juliomuhlbauer/hono-pages at postgresjs
Contribute to juliomuhlbauer/hono-pages development by creating an account on GitHub.
It does not work with cloudflare workers either
I could get working with worker with node_compat = true, but the pages does not accept this config
I tried everything, don't know what do anymore
Is a postgres.js or cloudflare problem?
Issue unsolved
Is there someplace that I can file an issue/ticket for this?
This is stopping me moving to cloudflare