diff --git a/sitio/src/lib/server/db.ts b/sitio/src/lib/server/db.ts index d587d16..968cc55 100644 --- a/sitio/src/lib/server/db.ts +++ b/sitio/src/lib/server/db.ts @@ -1,10 +1,2 @@ -import Database from "better-sqlite3"; -import { drizzle } from "drizzle-orm/better-sqlite3"; -import * as schema from "db-datos/schema.js"; -import { env } from "$env/dynamic/private"; - -const sqlite = new Database(env.DB_PATH ?? "../scraper/sqlite.db"); -const db = drizzle(sqlite, { schema }); - -export { db }; +export { db } from "db-datos/db.js"; export * as schema from "db-datos/schema.js";