[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
or
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
The way I now need to handle this is to add the binding using admin everytime I deploy 😄
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
?Yes! The problem seemed to be that my wrangler version was old. I tried with `npx wrangler@latest deploy" again and it worked now 😄