Skip to content

Injecting Cloudflare bindings on prod #3

Description

@Fawwaz-2009

Hey @timoconnellaus thank you so much for making this. I managed to implement this with the latest version of tanstack start and it works perfectly in development but after deploying I got error saying TypeError: Cannot read properties of undefined (reading 'env') it's seems that cloudflare bindings can't be found in prod.

I have a question about getCloudflareContext in this line you are simply returning event.context.cloudflare but what I'm trying to understand is when and how did the cloudflare bindings got attached to the event.context ?

return event.context.cloudflare;

thanks again :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions