Files
bknd/examples/node/index.js
T
2026-03-24 13:30:54 -06:00

26 lines
505 B
JavaScript

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