mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-17 12:56:05 +00:00
add deno to the cli starters
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user