Files
bknd/examples/bun/index.ts

15 lines
342 B
TypeScript

// @ts-ignore somehow causes types:build issues on app
import { type BunBkndConfig, serve } from "bknd/adapter/bun";
// Actually, all it takes is the following line:
// serve();
// this is optional, if omitted, it uses an in-memory database
const config: BunBkndConfig = {
connection: {
url: "file:data.db"
}
};
serve(config);