Skip to content

Commit 5e96130

Browse files
authored
fix: .env path resolution on registry (#886)
1 parent e778d73 commit 5e96130

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

platforms/registry/api/src/config/database.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as dotenv from "dotenv"
55
import { join } from "path"
66

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

1010
export const AppDataSource = new DataSource({
1111
type: "postgres",
@@ -19,9 +19,9 @@ export const AppDataSource = new DataSource({
1919
subscribers: [],
2020
ssl: process.env.DB_CA_CERT
2121
? {
22-
rejectUnauthorized: false,
23-
ca: process.env.DB_CA_CERT,
24-
}
22+
rejectUnauthorized: false,
23+
ca: process.env.DB_CA_CERT,
24+
}
2525
: false,
2626
// Connection pool configuration to prevent exhaustion
2727
extra: {
@@ -31,4 +31,4 @@ export const AppDataSource = new DataSource({
3131
connectionTimeoutMillis: 5000,
3232
statement_timeout: 10000,
3333
},
34-
})
34+
})

0 commit comments

Comments
 (0)