Thanks for the pointer. But where is the part that calls `export async function onRequest(context)`

Thanks for the pointer. But where is the part that calls export async function onRequest(context) and uses the value? Does is always act like a middleware? Would I need to route this manually like in https://developers.cloudflare.com/pages/platform/functions/examples/ab-testing/ ?
Was this page helpful?