Issue with shopify app dev not updating URLs after upgrading CLI

@Beverly_Tang This would make sense if your deployed app version has the correct URL that you want to test. Otherwise the store is going to continue using the URL from your last app dev session. I must have misunderstood your issue, glad you figured it out.

We are working on adding an equivalent link for app dev clean in the Dev Console.

@Lennard – Configuring the app path used with app dev and dynamic tunnels has been an on-again, off-again request. I’ve reopened the issue, you can track it on GitHub:

The workaround would be to use a static URL (such as an ngrok paid tunnel) and to set automatically_update_urls_on_dev = false in your shopify.app.toml.

Thanks for feedback @NickWesselman . All these workarounds didn’t work well after all. We decided to create a complete separate setup after all. I’ll lookout for updates on GH:)

Hi,
Are there any updates on this issue?
I’m facing the same problem as Beverly_Tang.
Can I roll back to the previous CLI version?

Hi @Raisel_Castellanos_S

I’d recommend reviewing the docs for the new app dev and its expected behavior. If you are still having issues, please open a new issue, since this one is marked solved:

Who on earth made the decision, random posts on X are a proper channel to inform partners about changes?

Most of the time, the real valuable information only can be found there and is missing, or hid under ton of unimportant stuff somewhere in the docs…

@NickWesselman

shopify app dev does not correctly update the application_url or redirect_urls for installation/oAuth flow but uses the url defined in the toml file.

in my toml:

application_url = “https://nova-serial-ross-newest.trycloudflare.com

when running shopify app dev:

app_home │ └ Using URL: https://bell-royal-passing-accommodation.trycloudflare.com

App is currently not installed on development shop.. when I click the preview link I am directed to the grant screen as expected, once I click install I am directed back to the my app url in the dev shop.. the iframe src I would expect to see

https://bell-royal-passing-accommodation.trycloudflare.com/?” instead I see

https://nova-serial-ross-newest.trycloudflare.com/?” and of course the app does not load since the active tunnel is bell-royal..

I have to stop and restart shopify app dev to get a new tunnel going and then once I click on the preview link the app loads. If I try to use the preview link again the preview link tries to load nova-serial tunnel instead of the active tunnel.

cli version: 3.88.1

Could you please have someone take a look at this? Its making it impossible for me to test my oauth flow in dev.

Cheers

Gary

Hi @Gary_Gilbert. If you are still experiencing this issue, please open a new topic.

Also there’s no need to tag us individually, new issues will alert appropriate teams!

Thanks,
Nick