mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
small refactorings and cleanups, improved bun/node adapter, updated docs
This commit is contained in:
@@ -16,7 +16,8 @@ the admin panel.
|
||||
// index.ts
|
||||
import { serve } from "bknd/adapter/bun";
|
||||
|
||||
const handler = serve({
|
||||
// if the configuration is omitted, it uses an in-memory database
|
||||
serve({
|
||||
connection: {
|
||||
type: "libsql",
|
||||
config: {
|
||||
@@ -25,13 +26,6 @@ const handler = serve({
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Bun.serve({
|
||||
port: 1337,
|
||||
fetch: handler
|
||||
});
|
||||
|
||||
console.log("Server running at http://localhost:1337");
|
||||
```
|
||||
For more information about the connection object, refer to the [Setup](/setup) guide.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user