diff --git a/backend/db/index.ts b/backend/db/index.ts index 7b41e19..5fbbfaa 100644 --- a/backend/db/index.ts +++ b/backend/db/index.ts @@ -2,11 +2,12 @@ import { drizzle } from "drizzle-orm/node-postgres"; import { Pool } from "pg"; import * as schema from "./schema"; +import {secrets} from "../src/utils/secrets"; console.log("[DB INIT] 1. Suche Connection String..."); // Checken woher die URL kommt -let connectionString = process.env.DATABASE_URL; +let connectionString = process.env.DATABASE_URL || secrets.DATABASE_URL; if (connectionString) { console.log("[DB INIT] -> Gefunden in process.env.DATABASE_URL"); } else {