mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 12:37:20 +00:00
21 lines
545 B
TypeScript
21 lines
545 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: {
|
|
type: "libsql",
|
|
config: {
|
|
url: ":memory:"
|
|
}
|
|
},
|
|
// this is only required to run inside the same workspace
|
|
// leave blank if you're running this from a different project
|
|
distPath: "../../app/dist"
|
|
};
|
|
|
|
serve(config);
|