Too many clients already (!?)

Hey guys, been using Drizzle for a few weeks now and I think since last week this issue has started (look at screenshot).
I'm using the
postgres
paackge to connect Drizzle to my PostgreSQL database that's deployed to Railway.

Drizzle connection code 👇 :
import { env } from "@/env.mjs";
import { drizzle } from "drizzle-orm/postgres-js";
import postgres from "postgres";

import * as schema from "./schemas";

const connection = postgres(env.DB_URL);
export const dbClient = drizzle(connection, { logger: true, schema });


Dunno what I might be doing wrong, please help me 🙏
image.png
Was this page helpful?