Which Cloudflare product(s) does this pertain to?
Wrangler
What versions are you using?
3.x
What operating system and version are you using?
All
Please provide a link to a minimal reproduction
No response
Describe the Bug
A redirected config should not have environments nor should Wrangler try to apply one when using a redirected config.
Instead the environment should be set when running vite dev or vite build: https://github.com/cloudflare/workers-sdk/tree/main/packages/vite-plugin-cloudflare#cloudflare-environments
Please provide any relevant error logs
No response
Which Cloudflare product(s) does this pertain to?
Wrangler
What versions are you using?
3.x
What operating system and version are you using?
All
Please provide a link to a minimal reproduction
No response
Describe the Bug
A redirected config should not have environments nor should Wrangler try to apply one when using a redirected config.
Instead the environment should be set when running
vite devorvite build: https://github.com/cloudflare/workers-sdk/tree/main/packages/vite-plugin-cloudflare#cloudflare-environments--envand similar when using a redirected configPlease provide any relevant error logs
No response