mirror of
https://github.com/documenso/documenso.git
synced 2025-11-15 17:21:41 +10:00
15 lines
406 B
TypeScript
15 lines
406 B
TypeScript
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,
|
|
}),
|
|
}),
|
|
});
|