A Node.js API is used (process.cwd) which is not supported in the Edge Runtime.dotenv.config(); for the Pooler, which uses process.cwd internallymiddleware.ts , which is on the Edge Runtime. process.cwd, I run into the aforementioned error.dotenv since it appeared as though my env variables were being set. However, with dotenv removed I get the error Error: All attempts to open a WebSocket to connect to the database failed.