Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloudflare env is lost after a few minutes #78

Open
JamesLAllen opened this issue Mar 31, 2024 · 0 comments
Open

Cloudflare env is lost after a few minutes #78

JamesLAllen opened this issue Mar 31, 2024 · 0 comments

Comments

@JamesLAllen
Copy link

Since CF workers are created per use, they are also lost and any globals set in the original function is also lost. The only way to propagate the VENDURE_API in the graphqlWrapper is by passing it through the context.cloudflare.env. The only fix I found for this is to pass the context along with the request in every function call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant