add deno to the cli starters

This commit is contained in:
dswbx
2025-10-25 10:18:43 +02:00
parent 1fc6e810ae
commit b787837dd2
7 changed files with 48 additions and 16 deletions

View File

@@ -1,14 +1,12 @@
import { createRuntimeApp } from "bknd/adapter";
import { createRuntimeApp, serveStaticViaImport } 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/",
},
serveStatic: serveStaticViaImport(),
});
// @ts-ignore
Deno.serve(app.fetch);
export default {
fetch: app.fetch,
};