learnshopify.dev/Workspace
local task

Have your agent make the app prepare every store that installs it.

Pass criterion: `app/shopify.server.ts` has an `afterAuth` hook, your app sends `cartTransformCreate`, and the app builds.
$ npx @learnshopifydev/cli check set-up-a-store-on-install
1. Give your agent the job

The two numbered points are what you did by hand in lessons 20 and 30.

2. Read what changed in `app/shopify.server.ts`

Only a `hooks` part with `afterAuth` should be new.

3. Watch the hook run on your path store

In `npx prisma studio`, delete the row in `Session`, then open your app with `shopify app dev` running. The terminal shows what the hook logged.

4. Build the app, then commit

When it builds without an error, commit: `git add -A`, then `git commit -m "Set up a store on install"`.

0 / 1 task solved