We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents afe7abf + 8f9e918 commit 1c047ffCopy full SHA for 1c047ff
templates/worker.ts
@@ -30,7 +30,7 @@ export default {
30
try {
31
input = (await request.json()) as unknown[];
32
} catch {}
33
- return Response.json(functions[functionName](...input), {
+ return Response.json(functions[functionName].bind(env)(...input), {
34
headers: {
35
"Access-Control-Allow-Origin": "*",
36
"Access-Control-Allow-Method": "POST",
0 commit comments