wrangler dev --remote: Browser Redirects to Production URL
Hello everyone, I'm encountering an issue with wrangler dev --remote in Cloudflare Workers. In my understanding, this command should generate a temporary preview deployment with a URL in the format <VERSION_PREFIX>-<WORKER_NAME>.<SUBDOMAIN>.workers.dev. However, when I run npx wrangler dev --remote, my files upload successfully, but the browser redirects to the production URL <WORKER_NAME>.<SUBDOMAIN>.workers.dev instead of the expected preview URL. Additionally, I checked the Deploy version, but I couldn’t find the uploaded preview version. Here’s what I’ve observed: Command output: Success! Uploaded 9 files (74 already uploaded) (1.64 sec) [wrangler:inf] GET / 307 Temporary Redirect (1705ms) Browser redirect: From http://localhost:46221 to the production URL. Wrangler version: 4.16.0 Node version: 22.16.0 I’ve verified my wrangler.toml configuration and confirmed that preview_urls = true and workers_dev = true are set. Has anyone else experienced this issue? Any insights would be greatly appreciated. Thank you!