env.MY_CERT.fetch around (like to a third-party library), it will throw a TypeError: Illegal invocation when yielded unless you manually .bind it to the env.MY_CERT context. I don't know if this is specific to being used within a generator or if it does it on await too.yield.options.fetcher = env.MY_CERT.fetch.bind(env.MY_CERT)
Join the Discord to ask follow-up questions and connect with the community
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
87,367 Members
Join