You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
283 B
TypeScript

import { drizzle } from 'drizzle-orm/postgres-js'
import postgres from 'postgres'
import * as schema from './schema'
const client = postgres(
process.env.DATABASE_URL ??
'postgres://postgres:password@127.0.0.1:5432/next-dashboard'
)
export const db = drizzle(client, { schema })