public commit

This commit is contained in:
dswbx
2024-11-16 12:01:47 +01:00
commit 90f80c4280
582 changed files with 49291 additions and 0 deletions

23
examples/bun/index.ts Normal file
View File

@@ -0,0 +1,23 @@
/*
// somehow causes types:build issues on app
import type { CreateAppConfig } from "bknd";
import { serve } from "bknd/adapter/bun";
const root = "../../node_modules/bknd/dist";
const config = {
connection: {
type: "libsql",
config: {
url: "http://localhost:8080"
}
}
} satisfies CreateAppConfig;
Bun.serve({
port: 1337,
fetch: serve(config, root)
});
console.log("Server running at http://localhost:1337");
s*/