diff --git a/src/server/db/schema.ts b/src/server/db/schema.ts index d68cf52..a13f408 100644 --- a/src/server/db/schema.ts +++ b/src/server/db/schema.ts @@ -10,7 +10,7 @@ import postgres from "postgres" import { drizzle } from "drizzle-orm/postgres-js" import type { AdapterAccountType } from "next-auth/adapters" -const connectionString = "postgres://postgres:postgres@localhost:5432/drizzle" +const connectionString = process.env.DATABASE_URL ?? ""; const pool = postgres(connectionString, { max: 1 }) export const db = drizzle(pool)