mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
adapter(cloudflare): add supports for the new assets feature
This commit is contained in:
@@ -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
|
||||
}
|
||||
});
|
||||
|
||||
@@ -5,9 +5,10 @@ compatibility_date = "2024-11-06"
|
||||
compatibility_flags = ["nodejs_compat"]
|
||||
workers_dev = true
|
||||
minify = true
|
||||
assets = { directory = "../../app/dist/static" }
|
||||
|
||||
[observability]
|
||||
enabled = true
|
||||
|
||||
[site]
|
||||
bucket = "../../app/dist/static"
|
||||
#[site]
|
||||
#bucket = "../../app/dist/static"
|
||||
Reference in New Issue
Block a user