chore: re-arrange stuff

This commit is contained in:
Catalin Pit
2024-03-21 15:46:53 +02:00
parent fdbac9fc03
commit 6b73899ecc
2 changed files with 15 additions and 12 deletions

View File

@ -0,0 +1,14 @@
import { KyselyAuth } from '@auth/kysely-adapter';
import type { Codegen } from '@auth/kysely-adapter';
import { PostgresDialect } from 'kysely';
import { Pool } from 'pg';
import type { DB } from '@documenso/prisma/generated/types';
export const db = new KyselyAuth<DB, Codegen>({
dialect: new PostgresDialect({
pool: new Pool({
connectionString: process.env.DATABASE_URL,
}),
}),
});