#Durable Objects

3 messages · Page 1 of 1 (latest)

barren bramble
#

Hi,

I want to create react/vite project where I can have a durable object for global store for the counter so if any increases it, it increases a global counter

Steps to reproduce:

  1. I created a app using the template avaiable from workers+pages create button- "Vite React Template"

npm create cloudflare@latest -- --template=cloudflare/templates/vite-react-template

  1. Once deployed, I wanted to add a binding for a durable object in the settings, this way i have object once I deploy

I'm in setting and I select "+Add Binding" this lets me add the binding but in the list, "Durable Objects" is greyed out as payed

However, when creating templates like the webchat I already get these bindings created

I am doing this on the free plan as a practice project

covert fiber
#

durable object is a paid feature, so I don't think it will work even when you get it via the web chat template