Getting "context is not defined" error

Attempting to use context.env.VARIABLE for a few environment variables I have set up, however I'm getting this exception when it runs:
"exceptions": [
{
"name": "ReferenceError",
"message": "context is not defined",
"timestamp": 1698872701387
}
],
"exceptions": [
{
"name": "ReferenceError",
"message": "context is not defined",
"timestamp": 1698872701387
}
],
Unsure why this is the case - this is in an Astro API route.
0 Replies
No replies yetBe the first to reply to this messageJoin