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 +});