mirror of
https://github.com/documenso/documenso.git
synced 2025-11-14 16:51:38 +10:00
chore: re-arrange stuff
This commit is contained in:
14
packages/lib/next-auth/kysely-db/db.ts
Normal file
14
packages/lib/next-auth/kysely-db/db.ts
Normal 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,
|
||||
}),
|
||||
}),
|
||||
});
|
||||
Reference in New Issue
Block a user