vercel / storage

Vercel Postgres, KV, Blob, and Edge Config
https://vercel.com/storage
Apache License 2.0
503 stars 56 forks source link

Set Neon webSocketConstructor #182

Closed roelandxyz closed 1 year ago

roelandxyz commented 1 year ago

I added support for @vercel/postgres in authjs-adapter-sql. It works, but I had to use the webSocketConstructor of the neon driver to get it working in Jest: https://github.com/roelandmoors/authjs-adapter-sql/blob/main/tests/vercel.test.ts#L9

I also found something like this here: https://github.com/vercel/storage/blob/main/packages/postgres/src/index-node.ts

Maybe @vercel/postgres should allow setting the websocket constructor directly? Or is there a better solution?

vvo commented 1 year ago

Hey @roelandmoors I see you archived your package, so closing this issue for now, thanks