Defining websocket for NeonDB connection
Hey all, I'm having issues with using neondb on a playwright/test package in my monorepo. The connections work fine in my nextjs app but fail when running tests.
The error recommends defining a websocket constructor to the config of the neon client like so:
But currently I'm using the Pool as recommended by drizzle like so:
Pool doesn't accept a webSoctetConstructor, so I'm pretty stuck now lol.
Any ideas? Thanks for reading!
1 Reply
Fixed it! 🥴
should of just followed the instructions:
The Singleton pattern for the neonConfig threw me through a loop