Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions platforms/registry/api/src/config/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as dotenv from "dotenv"
import { join } from "path"

// Load environment variables from root .env file
dotenv.config({ path: join(__dirname, "../../../../.env") })
dotenv.config({ path: join(__dirname, "../../../../../.env") })

export const AppDataSource = new DataSource({
type: "postgres",
Expand All @@ -19,9 +19,9 @@ export const AppDataSource = new DataSource({
subscribers: [],
ssl: process.env.DB_CA_CERT
? {
rejectUnauthorized: false,
ca: process.env.DB_CA_CERT,
}
rejectUnauthorized: false,
ca: process.env.DB_CA_CERT,
}
: false,
// Connection pool configuration to prevent exhaustion
extra: {
Expand All @@ -31,4 +31,4 @@ export const AppDataSource = new DataSource({
connectionTimeoutMillis: 5000,
statement_timeout: 10000,
},
})
})