/hello ... but it's not.core:user:worker: Uncaught ReferenceError: process is not defined context.env.VARawait points (no IO) inside initFromEnv then you should be good.await'ing inside the initFromEnv then there's concurrency issues because Workers may switch the request they're serving on await points.{"env":"prod"} , there's no sub-fetch or database queries going on. The endpoint sets cache-control: private. On my BetterStack graph, I'm seeing lots of requests which take ~1 second and even a handful which take ~2 seconds. I switched to paid workers, but don't see any difference in the graph. So a couple questions:
Response.json()Workers with a D1 binding will always be placed in a data center near the location of the D1 database they are bound to => I do have a D1 binding.pnpx wrangler dev functions it keeps saying pnpx wrangler dev functions/get_info/index.js my script works perfectly. 
context.request object is completely empty?context.request.url to at least exist?JSON.stringify(context) look like:http://localhost:8788/api/auth-callback?token=aaabbbJSON.stringify (and sometimes console.log) - it doesn't handle properties on most objects.context.request.url directly

$ find _site
_site
_site/index.html
_site/functions
_site/functions/hello.jsconst db = initFromEnv(env)
export async function onRequestGet(context) {
// use db
}let variable;
export async function onRequestGet(context) {
if (variable == null) {
variable = initFromEnv(env);
}
// ...use variable
} [ERROR] The entry-point file at "functions" was not found.
The provided entry-point path, "functions", points to a directory, rather than a file.{
"request": {},
"functionPath": "/api/auth-callback",
"params": {},
"data": {},
"env": {
"ASSETS": {}
}
}