Access environment variables out of a Cloud Pages Function

For Workes & Pages, what is the name of the domain?

admin.training4programmers.com

What is the issue or error you’re encountering

I know how to access environment variables with the context.env variable inside a function, but how do I access environment variable outside of the function? For example, I would like to populate domain and aug variables below using environment variables but I do not have access to the context.env variable because the code is not in a pages function. How do I access environment variables out of a function? export const onRequestPost = [ cloudflareAccessPlugin({ domain, aud }), async ({ request, env }) => { }]