mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 20:37:21 +00:00
21 lines
526 B
JavaScript
21 lines
526 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").NodeAdapterOptions} */
|
|
const config = {
|
|
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
|
|
relativeDistPath: "../../app/dist"
|
|
};
|
|
|
|
serve(config);
|