Production app breaks on npm run dev

Topic summary

A developer is experiencing issues with their Shopify production app when running npm run dev.

The Problem:

  • When automatically_update_urls_on_dev = true is enabled in the build configuration, both production and development apps incorrectly point to .trycloudflare.com URLs
  • When this setting is disabled, URLs don’t update properly, preventing the dev store from being served locally

Current Status:
The developer is seeking a workaround that allows efficient local development without breaking the production environment. No solutions have been provided yet.

Summarized with AI on October 29. AI used: claude-sonnet-4-5-20250929.

HI My production app break if i set
[build]
automatically_update_urls_on_dev = true

app start pointing to .trycloudflare.com

even production app, and if I switch off automatically_update_urls_on_dev

URLs not getting updated so dev store is not getting served from lcoal

whats wayout for efficient development