Files
bknd/examples/bun/index.ts
2025-04-03 16:40:51 +02:00

23 lines
465 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",
},
initialConfig: {
media: {
enabled: true,
adapter: {
type: "local",
config: { path: "./uploads" },
},
},
},
};
serve(config);