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 :)
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
getCloudflareContextin this line you are simply returningevent.context.cloudflarebut what I'm trying to understand is when and how did thecloudflarebindings got attached to theevent.context?tanstack-start-workers/app/utils/cfContext.ts
Line 10 in c26ec16
thanks again :)