File tree Expand file tree Collapse file tree 1 file changed +16
-12
lines changed Expand file tree Collapse file tree 1 file changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -37,18 +37,22 @@ export type LeafletImage = Selectable<LeafletImagesTable>;
37
37
38
38
const db = new Kysely < Database > ( {
39
39
dialect : new PostgresDialect ( {
40
- pool : process . env . DATABASE_URL
41
- ? new Pool ( { connectionString : process . env . DATABASE_URL } )
42
- : new Pool ( {
43
- // .devcontainer config
44
- database : "postgres" ,
45
- host : "db-postgres" ,
46
- user : "postgres" ,
47
- password : "postgres" ,
48
- port : 5432 ,
49
- max : 5 ,
50
- connectionTimeoutMillis : 5000 ,
51
- } ) ,
40
+ pool : new Pool ( {
41
+ ...( process . env . DATABASE_URL
42
+ ? {
43
+ connectionString : process . env . DATABASE_URL ,
44
+ }
45
+ : {
46
+ // .devcontainer config
47
+ database : "postgres" ,
48
+ host : "db-postgres" ,
49
+ user : "postgres" ,
50
+ password : "postgres" ,
51
+ port : 5432 ,
52
+ } ) ,
53
+ max : 5 ,
54
+ connectionTimeoutMillis : 5000 ,
55
+ } ) ,
52
56
} ) ,
53
57
} ) ;
54
58
You can’t perform that action at this time.
0 commit comments