shopify app dev not start remix or updating URLs

Topic summary

A developer’s existing Shopify app stops launching the Remix dev server after switching to a separate development app (new client ID/secret). Running npm run dev creates a new Cloudflare tunnel and updates the Partner App configuration URL, but the local config isn’t updated and Remix doesn’t start; various CLI commands (link/use/deploy), CLI reinstall, and reinstalling node_modules didn’t help. A fresh app from shopify app init works normally.

Context: Cloudflare Tunnel exposes the local app for testing; Remix is the app framework; Shopify CLI orchestrates dev; Prisma is the ORM. The behavior suggests the dev command isn’t being triggered by the CLI due to missing configuration.

Suggested fix: Add shopify.web.toml in the project root with roles, webhooks_path, and a [commands] section:

  • predev: npx prisma generate
  • dev: npx prisma migrate deploy && npm exec remix vite:dev

Outcome/status: No confirmation from the original poster yet. The leading hypothesis is a missing shopify.web.toml causing the CLI to set up the tunnel but not start Remix. Screenshots show CLI output and app config changes but aren’t essential to the fix.

Summarized with AI on December 13. AI used: gpt-5.

This may be a unique situation, but I did have everything working properly…

I have a live, production app on the app store and now I want to work on new features in an isolated development environment.

I created a ‘new app’ to have a separate development app to work and test with.

I switched over my client id and secret thinking this will be all I have to do.

Now, when I run npm run dev it appears to create a new Cloudflare tunnel and update my new development app’s configuration.

  • My config file is not being updated, but on my Shopify Partners → App → Configuration it is updated there with new cloudflare url

Additionally, upon running npm run dev it only prints out the following, looks like remix is not even starting?

I have tried all sorts of configurations and link and use and deploy, all with no errors but nothing seems to be working.

  • Have updated and reinstalled @shopify/cli

  • Removed node_modules and reran npm install

  • shopify app dev appears to work completely fine with a NEW fresh app from shopify app init

Any ideas?

1 Like

I think you are missing the following file in your root dir: https://github.com/Shopify/shopify-app-template-remix/blob/39f9e1dd2a7b092c1fe1048d2c6b1728f937db0a/shopify.web.toml

shopify.web.toml


name = "remix"
roles = ["frontend", "backend"]
webhooks_path = "/webhooks/app/uninstalled"

[commands]
predev = "npx prisma generate"
dev = "npx prisma migrate deploy && npm exec remix vite:dev"