Files
bknd/examples/postgres/neon.ts
2025-10-31 20:11:16 +01:00

15 lines
448 B
TypeScript

import { serve } from "bknd/adapter/bun";
import { createCustomPostgresConnection } from "bknd";
import { NeonDialect } from "kysely-neon";
const neon = createCustomPostgresConnection("neon", NeonDialect);
export default serve({
connection: neon({
connectionString: process.env.NEON,
}),
// ignore this, it's only required within this repository
// because bknd is installed via "workspace:*"
distPath: "../../app/dist",
});