fix up database source from localhost to env variable
All checks were successful
Build Dev instance / build (push) Successful in 57s

This commit is contained in:
2026-03-05 17:11:00 +11:00
parent b8ad686d09
commit 04e9a5f303

View File

@@ -7,7 +7,7 @@ env.config();
export const AppDataSource = new DataSource({ export const AppDataSource = new DataSource({
type: "postgres", type: "postgres",
host: "localhost", host: process.env.POSTGRES_ENDPOINT,
port: 5432, port: 5432,
username: "postgres", username: "postgres",
password: process.env.POSTGRES_PASSWORD, password: process.env.POSTGRES_PASSWORD,
@@ -23,4 +23,4 @@ export const AppDataSource = new DataSource({
null: "sql-null", null: "sql-null",
undefined: "throw", undefined: "throw",
}, },
}); });