#Development and deployment on Cloudflare (Pages)

7 messages · Page 1 of 1 (latest)

shut stirrup
#

I thought creating a Cloudflare thread could be helpful to myself and others in the future.

I currently use https://github.com/nekochan0122/tanstack-start-with-cf-pages-env-vars in order to have a successful Cloudflare deployment with variables.
This works for variable bindings both in dev and when deployed, but other bindings, such as D1, do not work in dev (using vinxi dev)

Looking for an easier, more native solution. Has anyone had luck with the following?: https://nitro.build/deploy/providers/cloudflare#direct-access-to-cloudflare-bindings

GitHub

Contribute to nekochan0122/tanstack-start-with-cf-pages-env-vars development by creating an account on GitHub.

shut stirrup
#

Surfacing this solution while waiting for a better one: #start message

obtuse temple
#

I am still a bit stuck on how to use the bindings with TanStack Start, Cloudflare Pages and Cloudflare D1.

shut stirrup
obtuse temple
#

I haven't but from your message I understand this doesn't work for bindings like D1 for development which is what I was trying to achieve.

shut stirrup
#

I got local D1 working by doing this: #start message

pulsar vigil