[Workers] Images binding unset on deploy

I am seeing issues when I am deploying a new revision of my worker with a images binding. the images binding gets unset so I need to re-add it using admin
[[images]]
binding = "IMAGES"
[[images]]
binding = "IMAGES"
or
[images]
binding = "IMAGES"
[images]
binding = "IMAGES"
What is the issue or error you’re encountering Images binding is unset on deploy What are the steps to reproduce the issue? add images binding in cf admin to a worker add images binding to wrangler.toml and deploy using wrangler deploy. I did also write a post on CF support community: https://community.cloudflare.com/t/worker-images-binding-unset-on-deploy/789912
3 Replies
Privv
PrivvOP3d ago
The way I now need to handle this is to add the binding using admin everytime I deploy 😄
Deanna
Deanna2d ago
just double checking — by "using admin", do you mean that the binding works only when you configure it in the dashboard? have you confirmed that your wrangler.toml file is in the right directory and is saved before running wrangler deploy?
Privv
PrivvOPthis hour
Yes! The problem seemed to be that my wrangler version was old. I tried with `npx wrangler@latest deploy" again and it worked now 😄

Did you find this page helpful?