A decentralized music tracking and discovery platform built on AT Protocol 🎵 rocksky.app
spotify atproto lastfm musicbrainz scrobbling listenbrainz
98
fork

Configure Feed

Select the types of activity you want to include in your feed.

Set Postgres pool idle timeout to 10 minutes

+5 -1
+5 -1
apps/api/src/drizzle.ts
··· 2 2 import { env } from "lib/env"; 3 3 import pg from "pg"; 4 4 5 - const pool = new pg.Pool({ connectionString: env.XATA_POSTGRES_URL, max: 20 }); 5 + const pool = new pg.Pool({ 6 + connectionString: env.XATA_POSTGRES_URL, 7 + max: 20, 8 + idleTimeoutMillis: 10 * 1000 * 60, 9 + }); 6 10 const db = drizzle(pool); 7 11 8 12 export default { db };