From 04e9a5f30354a49d540b952b6d2dd8b7ccb8a443 Mon Sep 17 00:00:00 2001 From: laika Date: Thu, 5 Mar 2026 17:11:00 +1100 Subject: [PATCH] fix up database source from localhost to env variable --- database/data-source.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/data-source.ts b/database/data-source.ts index 654b1b3..dd98a50 100644 --- a/database/data-source.ts +++ b/database/data-source.ts @@ -7,7 +7,7 @@ env.config(); export const AppDataSource = new DataSource({ type: "postgres", - host: "localhost", + host: process.env.POSTGRES_ENDPOINT, port: 5432, username: "postgres", password: process.env.POSTGRES_PASSWORD, @@ -23,4 +23,4 @@ export const AppDataSource = new DataSource({ null: "sql-null", undefined: "throw", }, -}); \ No newline at end of file +});