mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 20:37:21 +00:00
19 lines
403 B
TypeScript
19 lines
403 B
TypeScript
import { serve } from "bknd/adapter/cloudflare";
|
|
|
|
import manifest from "__STATIC_CONTENT_MANIFEST";
|
|
|
|
export default serve({
|
|
app: (args) => ({
|
|
connection: {
|
|
type: "libsql",
|
|
config: {
|
|
url: "http://localhost:8080"
|
|
}
|
|
}
|
|
}),
|
|
onBuilt: async (app) => {
|
|
app.modules.server.get("/custom", (c) => c.json({ hello: "world" }));
|
|
},
|
|
manifest
|
|
});
|