|
@@ -387,11 +387,11 @@ Stack as built:
|
|
|
|
|
|
|
|
Dev loop:
|
|
Dev loop:
|
|
|
|
|
|
|
|
-1. `npm install && cp .dev.vars.example .dev.vars`, paste keys.
|
|
|
|
|
-2. `npm run db:migrate:dev && npm run dev` — local D1 + DO in miniflare, hot reload, OTP codes in the console.
|
|
|
|
|
|
|
+1. `pnpm install && cp .dev.vars.example .dev.vars`, paste keys.
|
|
|
|
|
+2. `pnpm db:migrate:dev && pnpm dev` — local D1 + DO in miniflare, hot reload, OTP codes in the console.
|
|
|
3. Two phones on the LAN: `wrangler dev --ip 0.0.0.0`, open `/`, jump in, create a hand, share `/h/<id>`.
|
|
3. Two phones on the LAN: `wrangler dev --ip 0.0.0.0`, open `/`, jump in, create a hand, share `/h/<id>`.
|
|
|
4. Tune the pick instruction in `wrangler.toml` `[vars].PICK_INSTRUCTIONS`; it hot-reloads.
|
|
4. Tune the pick instruction in `wrangler.toml` `[vars].PICK_INSTRUCTIONS`; it hot-reloads.
|
|
|
-5. Preview deploys: `npx wrangler versions upload` gives a URL without touching prod. First real deploy: `wrangler d1 create pm2000-db`, paste the id, `wrangler secret put TYPESAFE_API_KEY`, `wrangler secret put BETTER_AUTH_SECRET`, `npm run deploy`.
|
|
|
|
|
|
|
+5. Preview deploys: `pnpm exec wrangler versions upload` gives a URL without touching prod. First real deploy: `pnpm exec wrangler d1 create decision-maker-2000-db`, paste the ID, configure the secrets in `README.md`, then run `pnpm deploy`.
|
|
|
|
|
|
|
|
Still to support the dev loop:
|
|
Still to support the dev loop:
|
|
|
|
|
|