TypeError: client.unsafe is not a function

Hi Guys I got a challenge where it said TypeError: client.unsafe is not a function. so basically i was switching from neondb to supabase, in the drizzle documentations i need to use postgres.js as the packages and remove @Neondatabase/serverless. but i relized because im using cloudflare pages, that postgres.js is not edge compatible although there is workaround using
compatibility_flags = ["nodejs_compat"]
compatibility_flags = ["nodejs_compat"]
but i just do some experimentation to use @Neondatabase/serverless with supabase db, has anyone tried it?? I try it but i get error: TypeError: client.unsafe is not a function. although using nodejs_compat is fine, i just want to remove too much complexity because im still begineer and it's more neat not to use nodejs_compat
1 Reply
alka_99
alka_99OP10mo ago
Anyone tried this?
Want results from more Discord servers?
Add your server