Skip to content

🐛 BUG: env in redirected configs #8359

@petebacondarwin

Description

@petebacondarwin

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

  • ignore --env and similar when using a redirected config
  • put up a warning when Wrangler is ignoring environments
  • error if a redirected config has any named environments

Please provide any relevant error logs

No response

Metadata

Metadata

Labels

wranglerRelating to the Wrangler CLI tool

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions