Local development and CI
For local development and CI how do you connect with websockets?
Here is my docker-compose.yaml
and here is my drizzle orm connection logic
I'm unable to connect and I get the following error:
Error: All attempts to open a WebSocket to connect to the database failed. Please refer to https://github.com/neondatabase/serverless/blob/main/CONFIG.md#websocketconstructor-typeof-websocket--undefined. Details: fetch failed
2 Replies
other-emerald•2y ago
You need to opt-in/configure the proxy during local development. Usually that involves checking an environment variable. Example:
https://github.com/evanshortiss/neon-docker-wss-proxy-local/blob/main/index.ts
GitHub
neon-docker-wss-proxy-local/index.ts at main · evanshortiss/neon-do...
Contribute to evanshortiss/neon-docker-wss-proxy-local development by creating an account on GitHub.
helpful-purpleOP•2y ago
Oh i missed that, thanks