Fix: Postgres connection (#76)

* Correct Postgres database connect var

* Fix Postgres DB connection

* Fix lint error
This commit is contained in:
Md Mazedul Islam Khan
2025-03-24 19:41:10 +01:00
committed by GitHub
parent ea0a947c73
commit 092110c267
2 changed files with 3 additions and 3 deletions

View File

@@ -5,6 +5,6 @@ export default defineConfig({
out: "./src/db/migrations", out: "./src/db/migrations",
dialect: "postgresql", dialect: "postgresql",
dbCredentials: { dbCredentials: {
url: process.env.POSTGRES_URL || "", url: process.env.DATABASE_URL || "",
}, },
}); });

View File

@@ -1,5 +1,5 @@
import { drizzle } from "drizzle-orm/postgres-js"; import { drizzle } from "drizzle-orm/postgres-js";
import postgres from "postgres"; import postgres from "postgres";
const queryClient = postgres(process.env.DATABASE_URL); const queryClient = postgres(process.env.DATABASE_URL || "");
const db = drizzle({ client: queryClient }); export const db = drizzle({ client: queryClient });