Durable Objects

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
image.png
image.png
Was this page helpful?