2 Commits

Author SHA1 Message Date
metatroncubeswdev
dbf91e1515 fix: complete shopify.web.toml to match its original scaffold template
Some checks failed
CI / Lint, Unit & Integration Tests (push) Has been cancelled
shopify.web.toml.liquid (present since the repo's initial scaffold, Aug
23) is the real Shopify app-init template for this file — it was
apparently never actually run through the CLI's templating step when this
repo was first set up, which is the true root cause of shopify.web.toml
having been missing entirely (see the earlier "add missing shopify.web.toml"
commit for the multi-hour debugging session that traced the symptom back
to this file's absence, without yet knowing this template existed).

Render it properly for npm: adds `roles`/`webhooks_path` metadata, a
`predev` step that regenerates the Prisma Client automatically, and folds
`prisma migrate deploy` into `dev` itself — so `shopify app dev` keeps the
generated client and the database schema in sync with schema.prisma on
every run, rather than needing manual `npx prisma generate`/`migrate
deploy` after schema changes (exactly the class of bug just hit and fixed
by hand with the productRule/drivingDistanceCache models).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-03 18:41:31 -04:00
metatroncubeswdev
4a1d4e323f fix: add missing shopify.web.toml — root cause of dev preview never loading
Some checks failed
CI / Lint, Unit & Integration Tests (push) Has been cancelled
shopify.web.toml never existed at the repo root. Without it, `shopify app
dev` runs the theme/UI-extension/Function dev servers fine but never
starts the actual Remix app, and has no local dev-server port to build a
tunnel URL from for the embedded admin app — so Admin always showed the
generic "Find this app in the pages where you work" fallback, regardless
of which app record was linked, cache state, or CLI version. Root-caused
via `shopify app dev --verbose`, which showed the CLI's own reverse proxy
had a route for /extensions but none for /.

Also updates shopify.app.toml's client_id to a freshly linked app (the
previous one, and two accidental duplicates created while chasing this
bug via `dev --reset`/`config link`, were deleted from the Dev Dashboard),
resets application_url/redirect_urls to placeholders now that dev's
auto-update actually works, restores checkout-datetime's network_access
capability (briefly disabled to test an unrelated theory — confirmed not
the real cause), and widens the dev-log gitignore pattern.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-25 02:15:50 -04:00