mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 20:37:21 +00:00
23 lines
458 B
TypeScript
23 lines
458 B
TypeScript
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",
|
|
},
|
|
config: {
|
|
media: {
|
|
enabled: true,
|
|
adapter: {
|
|
type: "local",
|
|
config: { path: "./uploads" },
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|
|
serve(config);
|