fix: build errors and merging projects and homepage
This commit is contained in:
11
src/lib/server/db/index.ts
Executable file
11
src/lib/server/db/index.ts
Executable file
@@ -0,0 +1,11 @@
|
||||
import { env } from '$env/dynamic/private';
|
||||
import { relations } from './relations';
|
||||
import { drizzle } from 'drizzle-orm/postgres-js';
|
||||
import postgres from 'postgres';
|
||||
|
||||
const client = postgres(env.DB_URL, { prepare: false });
|
||||
|
||||
export const db = drizzle({
|
||||
relations,
|
||||
client
|
||||
});
|
||||
Reference in New Issue
Block a user