what's the last good version? if anyone knows
what's the last good version? if anyone knows
Router instance is a Proxy, with a fetch method. This matches the expected { fetch } signature that Cloudflare or Bun expect. However, CF is having issues with the Proxy (Bun is fine with it, for comparison).{ middleware } property of Workers exports is being treated. Is there a way for me to PR a fix to this directly?middleware export as far as workerd is concernedawait import('foo.js')? Yesrules might do it, because it mentions there’s a default rule for wasm, like you mentioned. But it didn’t seem to work.
Learn more links on https://www.cloudflare.com/en-gb/plans/developer-platform/ don't seem to be working.


env.variable_name, right?export const router = OpenAPIRouter({
docs_url: "/",
schema: {
info: {
title: "JCoNet LTD API",
version: "1",
},
security: {
["apiKeyAuth"]: [],
},
},
});
router.registry.registerComponent("securitySchemes", "apiKeyAuth", {
type: "apiKey",
in: "header",
name: "x-api-key",
});
console.log(router.schema);const router = Router()
// doesn't work (but should)
export default router
// works
export default {
fetch: router.fetch
}
// works
export default { ...router }function myNewFunction(env) {
// use env here
}
export default {
async fetch(req, env) {
myNewFunction(env);
// Do more stuff
}
}