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"