tangled
alpha
login
or
join now
rocksky.app
/
rocksky
96
fork
atom
A decentralized music tracking and discovery platform built on AT Protocol 🎵
rocksky.app
spotify
atproto
lastfm
musicbrainz
scrobbling
listenbrainz
96
fork
atom
overview
issues
7
pulls
pipelines
Set Postgres pool idle timeout to 10 minutes
tsiry-sandratraina.com
4 weeks ago
38420846
20196d38
+5
-1
1 changed file
expand all
collapse all
unified
split
apps
api
src
drizzle.ts
+5
-1
apps/api/src/drizzle.ts
···
2
2
import { env } from "lib/env";
3
3
import pg from "pg";
4
4
5
5
-
const pool = new pg.Pool({ connectionString: env.XATA_POSTGRES_URL, max: 20 });
5
5
+
const pool = new pg.Pool({
6
6
+
connectionString: env.XATA_POSTGRES_URL,
7
7
+
max: 20,
8
8
+
idleTimeoutMillis: 10 * 1000 * 60,
9
9
+
});
6
10
const db = drizzle(pool);
7
11
8
12
export default { db };