mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
Fix: Postgres connection (#76)
* Correct Postgres database connect var * Fix Postgres DB connection * Fix lint error
This commit is contained in:
committed by
GitHub
parent
ea0a947c73
commit
092110c267
@@ -5,6 +5,6 @@ export default defineConfig({
|
||||
out: "./src/db/migrations",
|
||||
dialect: "postgresql",
|
||||
dbCredentials: {
|
||||
url: process.env.POSTGRES_URL || "",
|
||||
url: process.env.DATABASE_URL || "",
|
||||
},
|
||||
});
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { drizzle } from "drizzle-orm/postgres-js";
|
||||
import postgres from "postgres";
|
||||
|
||||
const queryClient = postgres(process.env.DATABASE_URL);
|
||||
const db = drizzle({ client: queryClient });
|
||||
const queryClient = postgres(process.env.DATABASE_URL || "");
|
||||
export const db = drizzle({ client: queryClient });
|
||||
|
||||
Reference in New Issue
Block a user