adapter(cloudflare): add supports for the new assets feature

This commit is contained in:
dswbx
2025-01-25 13:40:28 +01:00
parent 392a06c486
commit aa7eac258b
5 changed files with 45 additions and 37 deletions

View File

@@ -1,7 +1,5 @@
import { serve } from "bknd/adapter/cloudflare";
import manifest from "__STATIC_CONTENT_MANIFEST";
export default serve({
app: (args) => ({
connection: {
@@ -13,6 +11,5 @@ export default serve({
}),
onBuilt: async (app) => {
app.modules.server.get("/custom", (c) => c.json({ hello: "world" }));
},
manifest
}
});