mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 12:37:20 +00:00
15 lines
448 B
TypeScript
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",
|
|
});
|