Skip to content

chore(store): make dropship mode config-only (drop env read)#135

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

chore(store): make dropship mode config-only (drop env read)#135
sktbrd merged 1 commit into
mainfrom
chore/dropship-mode-config-only

Conversation

@sktbrd

@sktbrd sktbrd commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Per request: the KeepKey dropship mode is now controlled only by KEEPKEY_DROPSHIP_MODE in src/lib/config.ts. The Vercel env var is no longer read.
  • To go live: set KEEPKEY_DROPSHIP_MODE = "live" in config and ship. Default stays "test".

Changes

  • src/lib/config.tsKEEPKEY_DROPSHIP_MODE is a plain hardcoded const (no env read).
  • src/services/keepkey-dropship.tsisSandbox() reads the config const only.
  • src/services/keepkey-dropship.test.ts — mode driven via a mocked config value (not env).
  • env.example, docs/integrations/keepkey-fulfillment.md — mode noted as code-set, removed from env list.

Test plan

  • pnpm test — 115 passing
  • pnpm lint + tsc clean

Generated with Claude Code

isSandbox() now reads KEEPKEY_DROPSHIP_MODE from src/lib/config.ts only — the
env var is no longer consulted. Going live means editing config.ts to "live"
and shipping; the Vercel KEEPKEY_DROPSHIP_MODE env (if any) is ignored. Default
stays "test". Tests drive the mode via a mocked config value instead of env.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@sktbrd
sktbrd merged commit 5c693b3 into main Jul 16, 2026
@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:17pm
hackertestdao Ignored Ignored Jul 16, 2026 7:17pm

@sktbrd
sktbrd deleted the chore/dropship-mode-config-only branch July 16, 2026 19:17
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