mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-02 08:06:00 +00:00
added fallback route to server, created extensive setup instructions in docs
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
// @ts-ignore somehow causes types:build issues on app
|
||||
import { type BunAdapterOptions, serve } from "bknd/adapter/bun";
|
||||
import { type BunBkndConfig, serve } from "bknd/adapter/bun";
|
||||
|
||||
// Actually, all it takes is the following line:
|
||||
// serve();
|
||||
|
||||
// this is optional, if omitted, it uses an in-memory database
|
||||
const config: BunAdapterOptions = {
|
||||
const config: BunBkndConfig = {
|
||||
connection: {
|
||||
type: "libsql",
|
||||
config: {
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
import { createApp } from "bknd";
|
||||
|
||||
const app = createApp();
|
||||
await app.build();
|
||||
|
||||
export default app;
|
||||
Reference in New Issue
Block a user