Cloudflare Functions not working on Custom Domain

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

example.com

What is the issue or error you’re encountering

I have 3 functions that are running on a test domain that I use for development vs my primary domain which is where I push my live changes. I have recently started to obfuscate the code which has been working just fine on my test environment, but the same code and same namespaces do not work on my production website. It seems like cloudflare functions on my nonprod environment is able to process the KV values out of the code somehow vs my custom domain/prod.

What steps have you taken to resolve the issue?

Verified code and file structure is the exact same for each environment.