Files
userbase/examples/bun/index.ts
T
shishantbiswas 0bfcb5ad71
Run Tests / test (pull_request) Successful in 4m57s
bknd is dead long live userbase
2026-09-27 19:34:06 +05:30

23 lines
465 B
TypeScript

import { type BunUserbaseConfig, serve } from "userbase/adapter/bun";
// Actually, all it takes is the following line:
// serve();
// this is optional, if omitted, it uses an in-memory database
const config: BunUserbaseConfig = {
connection: {
url: "data.db",
},
config: {
media: {
enabled: true,
adapter: {
type: "local",
config: { path: "./uploads" },
},
},
},
};
serve(config);