Merge branch 'dev'

This commit is contained in:
Atridad Lahiji 2024-01-13 22:24:24 -07:00
commit ced1b0bd2a
No known key found for this signature in database

View file

@ -1,7 +1,10 @@
import { drizzle } from 'drizzle-orm/postgres-js'; import { drizzle } from "drizzle-orm/postgres-js";
import postgres from 'postgres'; import postgres from "postgres";
import * as schema from "./schema.server"; import * as schema from "./schema.server";
import "dotenv/config"; 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 }); export const db = drizzle(queryClient, { schema });