Any issues with workers? `ctx` seems to be empty for us sometimes, since a couple of hours
Any issues with workers?
ctx seems to be empty for us sometimes, since a couple of hours2024-09-23 with the nodejs_compat flag? We saw about a 2x increase in bundle size on our workers.nodejs_compat implies nodejs_compat_v2 after that compatibility_date & Wrangler adds polyfills with unenv"wrangler": "3.78.10", but works fine with wrangler on 3.78.9:ctxworkers.api.error.unknown [code: 10013]
pnpm create cloudflare@latest web --framework=remix --experimental bootstrapped a workers projectversionID and versionTag). These fields can be added to events emitted from the Worker to send to downstream observability systems.

2024-09-26 you should see the old behaviorfunction isNotEmptyObject<T extends Record<string, any>>(val: T | unknown): val is T {
if (Object.prototype.toString.call(val) !== '[object Object]') return false;
for (const _ in val as Record<string, any>) {
return true;
}
return false;
}
export default {
async fetch(request, env, ctx): Promise<Response> {
if (!isNotEmptyObject(ctx)) throw new Error('ctx');
return new Response('Hello World!');
},
} satisfies ExportedHandler<Env>;