Revised keepalive setup (turns out its flyproxy)

This commit is contained in:
Atridad Lahiji 2024-01-13 22:22:03 -07:00
parent fa0bd92c47
commit f409460b47
No known key found for this signature in database

View file

@ -1,7 +1,10 @@
import { drizzle } from 'drizzle-orm/postgres-js';
import postgres from 'postgres';
import { drizzle } from "drizzle-orm/postgres-js";
import postgres from "postgres";
import * as schema from "./schema.server";
import "dotenv/config";
const queryClient = postgres(process.env.DATABASE_URL!, {keep_alive: 10000});
const queryClient = postgres(process.env.DATABASE_URL!, {
idle_timeout: 20,
max_lifetime: 60 * 30,
});
export const db = drizzle(queryClient, { schema });