cloudflare / workers-sdk

⛅️ Home to Wrangler, the CLI for Cloudflare Workers®
https://developers.cloudflare.com/workers/
Apache License 2.0
2.6k stars 674 forks source link

🐛 BUG: smart placement flag cause email binding variable ignored when deploy #6178

Open twodft opened 3 months ago

twodft commented 3 months ago

Which Cloudflare product(s) does this pertain to?

Wrangler core

What version(s) of the tool(s) are you using?

3.61.0

What version of Node are you using?

20.x

What operating system and version are you using?

Windows 11

Describe the Bug

Observed behavior

Set smart placement flag will cause email binding variable to be ignored and cause an error when running. without smart placement flag image

with smart placement flag image

Expected behavior

Email binding env variable should not be ignored and needs to be correctly set when smart placement set to true.

[placement]
mode = "smart"

Steps to reproduce

Please provide the following:

A git repo we can clone and run a test suite on, or which has a README with step-by-step instructions, is even better. In this case, please use the field below to provide a link to the minimal repro.

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

No response