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>
This commit is contained in:
metatroncubeswdev 2026-09-03 18:41:31 -04:00
parent 1262e0f5ab
commit dbf91e1515

View File

@ -4,5 +4,20 @@
# `shopify app dev` never starts the Remix app at all — it only runs the # `shopify app dev` never starts the Remix app at all — it only runs the
# theme/function/UI-extension dev servers — which is why the embedded # theme/function/UI-extension dev servers — which is why the embedded
# admin app home never loaded no matter what URL configuration was tried. # admin app home never loaded no matter what URL configuration was tried.
#
# Content below matches shopify.web.toml.liquid (the original scaffold
# template for this file, still present at the repo root) rendered for
# npm — that .liquid file was apparently never actually run through
# `shopify app init`'s templating step when this repo was first set up,
# which is the real root cause of this file having been missing entirely.
# predev/dev's prisma steps mean `shopify app dev` keeps the generated
# Prisma Client and the database schema in sync with schema.prisma
# automatically every time it starts, rather than needing `npx prisma
# generate`/`migrate deploy` run by hand after every schema change.
name = "remix"
roles = ["frontend", "backend"]
webhooks_path = "/webhooks/app/uninstalled"
[commands] [commands]
dev = "npm exec remix vite:dev" predev = "npm exec prisma generate"
dev = "npm exec prisma migrate deploy && npm exec remix vite:dev"