mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
added r2 binding support to cf adapter
This commit is contained in:
@@ -2,4 +2,8 @@
|
||||
|
||||
import { serve } from "bknd/adapter/cloudflare";
|
||||
|
||||
export default serve();
|
||||
export default serve({
|
||||
onBuilt: async (app) => {
|
||||
app.modules.server.get("/custom", (c) => c.json({ hello: "world" }));
|
||||
}
|
||||
});
|
||||
|
||||
@@ -13,4 +13,8 @@ enabled = true
|
||||
[[d1_databases]]
|
||||
binding = "DB"
|
||||
database_name = "bknd-cf-example"
|
||||
database_id = "7ad67953-2bbf-47fc-8696-f4517dbfe674"
|
||||
database_id = "7ad67953-2bbf-47fc-8696-f4517dbfe674"
|
||||
|
||||
[[r2_buckets]]
|
||||
binding = "BUCKET"
|
||||
bucket_name = "bknd-cf-example"
|
||||
Reference in New Issue
Block a user