Skip to content

chore(store): centralize KeepKey dropship mode default in config#134

Merged
sktbrd merged 1 commit into
mainfrom
chore/dropship-mode-config
Jul 16, 2026
Merged

chore(store): centralize KeepKey dropship mode default in config#134
sktbrd merged 1 commit into
mainfrom
chore/dropship-mode-config

Conversation

@sktbrd

@sktbrd sktbrd commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Follow-up to putting the store checkout wallet in config: KEEPKEY_DROPSHIP_MODE now has its default in src/lib/config.ts, mirroring STORE_CHECKOUT.recipient.
  • isSandbox() still reads the env var at call-time (so Vercel can flip live/test without a redeploy), with the config const as the fallback default.
  • Default stays test deliberately — going live is an env flip, never a side effect of a deploy.

Changes

  • src/lib/config.ts — new KEEPKEY_DROPSHIP_MODE const (env override → "test" default).
  • src/services/keepkey-dropship.tsisSandbox() uses env ?? config default.
  • env.example, docs/integrations/keepkey-fulfillment.md — note the config default.

Test plan

  • pnpm test — 115 passing (mode-dependent webhook tests still flip via env)
  • Sanity: no env → test; KEEPKEY_DROPSHIP_MODE=livelive
  • pnpm lint + tsc clean

Generated with Claude Code

Add KEEPKEY_DROPSHIP_MODE to src/lib/config.ts as the single default ("test"),
mirroring the store checkout wallet. isSandbox() still reads the env var at
call-time so Vercel can flip live/test without a redeploy — the config const is
the fallback default. Default stays "test" deliberately: going live is an env
flip, never a side effect of a deploy.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@sktbrd
sktbrd merged commit 5a15575 into main Jul 16, 2026
3 checks passed
@vercel

vercel Bot commented Jul 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated (UTC)
gnars-shadcn Ignored Ignored Jul 16, 2026 7:12pm
hackertestdao Ignored Ignored Jul 16, 2026 7:12pm

@sktbrd
sktbrd deleted the chore/dropship-mode-config branch July 16, 2026 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant