From 8fb4ca77f8d29c5e210cb730ca98337e83217636 Mon Sep 17 00:00:00 2001 From: diegosouzapw Date: Wed, 20 May 2026 18:32:38 -0300 Subject: [PATCH] feat(db): call ensureDbInitialized at startup for sql.js pre-init --- src/instrumentation-node.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/instrumentation-node.ts b/src/instrumentation-node.ts index b55d1e352e..e8e89b6676 100755 --- a/src/instrumentation-node.ts +++ b/src/instrumentation-node.ts @@ -209,4 +209,6 @@ export async function registerNodejs(): Promise { const msg = err instanceof Error ? err.message : String(err); console.warn("[COMPLIANCE] Could not initialize audit log:", msg); } + + await import("@/lib/db/core").then(({ ensureDbInitialized }) => ensureDbInitialized()); }