mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-15 20:17:22 +00:00
added aws lambda adapter + improvements to handle concurrency
This commit is contained in:
17
examples/bun/static.ts
Normal file
17
examples/bun/static.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
// @ts-ignore somehow causes types:build issues on app
|
||||
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: BunBkndConfig = {
|
||||
adminOptions: {
|
||||
assets_path: "https://cdn.bknd.io/0.9.0-rc.1/",
|
||||
},
|
||||
connection: {
|
||||
url: "file:data.db",
|
||||
},
|
||||
};
|
||||
|
||||
serve(config);
|
||||
Reference in New Issue
Block a user