Revised keepalive setup (turns out its flyproxy)
This commit is contained in:
parent
fa0bd92c47
commit
f409460b47
1 changed files with 7 additions and 4 deletions
|
@ -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 });
|
Loading…
Add table
Reference in a new issue