Enable auth-service/api-gateway on production, build their images in CI

This commit is contained in:
2026-08-18 14:11:00 +07:00
parent e5afedfa2f
commit b68005be1c
70 changed files with 6781 additions and 263 deletions
+10
View File
@@ -0,0 +1,10 @@
import { Pool } from "pg";
/** One pool per process, unlike ai-service's Postgres adapter (which opens a
* connection per call — see its own docstring on why that's a known, not-yet
* fixed gap there). Node's `pg.Pool` makes per-request pooling the default,
* cheap way to do this correctly from the start rather than inheriting that
* same gap in a second language. */
export function createPool(dsn: string): Pool {
return new Pool({ connectionString: dsn, connectionTimeoutMillis: 5000 });
}