File tree Expand file tree Collapse file tree
platforms/registry/api/src/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import * as dotenv from "dotenv"
55import { 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
1010export 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+ } )
You can’t perform that action at this time.
0 commit comments