We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e6dd4a commit d4c3aaeCopy full SHA for d4c3aae
src/index.ts
@@ -107,10 +107,12 @@ export default {
107
return new JSONResponse(response.BAD_SIGNATURE, { status: 401 });
108
}
109
110
- return router.handle(request, loadEnv(env, true), ctx);
+ const Env: env = loadEnv(env, true);
111
+ return router.handle(request, Env, ctx);
112
},
113
114
async scheduled(req: Request, env: env, ctx: ExecutionContext) {
- ctx.waitUntil(send(loadEnv(env, true)));
115
116
+ ctx.waitUntil(send(Env));
117
118
};
0 commit comments