`export async function onRequest(context) { const myVar = constext.env.[your-envirment-variable]
export async function onRequest(context) {
const myVar = constext.env.[your-envirment-variable];
console.log("myvar = '${myVar}'");
// Note: I'm not sure the console will return value because of security settings. So you might need to do some trick to get pass that. So it might seem like nothing is returned if your logging it out. But if you combine it into an other object it should get around it so you can see it in the logs.
}freehanded that code, so just check it.
You'll also need to edit your wrangler.toml files to have the vars in there, even if you have configured them in the dashboard. That lets the services know it should look for them.
[./wrnagler.toml]
[vars]
myVar = "somthing"
