import { databasePath } from "../src/db/config"; import { fileURLToPath } from "node:url"; // Bun's built HTML assets resolve from dist; keep the database path absolute. process.env.DATABASE_PATH = databasePath; process.env.NODE_ENV = "production"; process.chdir(fileURLToPath(new URL("../dist", import.meta.url))); const entrypoint = new URL("../dist/index.js", import.meta.url).href; await import(entrypoint);