How can I connect to a postgres database?
I'm trying to connect to my postgres database through node-postgres but it fails because of required node dependencies.
According to this https://orm.drizzle.team/docs/quick-postgresql/supabase#usage-with-cloudflare-workers. It should work in a worker. I'm just not sure why it's not working for my sveltekit pages deployment.
Supabase - DrizzleORM
Drizzle ORM | %s
4 Replies
I have same issue
I ended up just switching to vercel. They support node-postgres.
try neon, seems cool and free
Neon
Drivers release Mar 08, 2023 - Neon
Fixes & improvements - Released a new version of the Neon serverless driver (v0.2.6), which allows you to query data from Cloudflare Workers, Vercel Edge Functi...