Skip to content

Cloudflare env is lost after a few minutes #78

@JamesLAllen

Description

@JamesLAllen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions