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