Files
bknd/examples/deno/main.ts
T
dswbx bebf9e0411 feat/deno (#219)
* update bun version

* fix module manager's em reference

* add basic deno example

* finalize
2025-07-22 20:32:07 +02:00

15 lines
335 B
TypeScript

import { createRuntimeApp } from "bknd/adapter";
const app = await createRuntimeApp({
connection: {
url: "file:./data.db",
},
adminOptions: {
// currently needs a hosted version of the static assets
assetsPath: "https://cdn.bknd.io/bknd/static/0.15.0-rc.9/",
},
});
// @ts-ignore
Deno.serve(app.fetch);