From dbf91e1515a2a2941c8aaccf31862e689b019920 Mon Sep 17 00:00:00 2001 From: metatroncubeswdev Date: Thu, 3 Sep 2026 18:41:31 -0400 Subject: [PATCH] fix: complete shopify.web.toml to match its original scaffold template MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- shopify.web.toml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/shopify.web.toml b/shopify.web.toml index 4edfbf8..db53cbb 100644 --- a/shopify.web.toml +++ b/shopify.web.toml @@ -4,5 +4,20 @@ # `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 # 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] -dev = "npm exec remix vite:dev" +predev = "npm exec prisma generate" +dev = "npm exec prisma migrate deploy && npm exec remix vite:dev"