Skip to content

fix(api): import commerce mock only so Worker bundle resolves - #36

Merged
TOMOKI977 merged 1 commit into
mainfrom
fix/api-worker-commerce-mock-import
Sep 9, 2026
Merged

TOMOKI977 merged 1 commit into
mainfrom
fix/api-worker-commerce-mock-import

Conversation

@TOMOKI977

Copy link
Copy Markdown
Collaborator

Summary

  • API was failing cf:deploy after commerce started exporting real.ts (viem).
  • Import @era/commerce/mock only; add ./mock export; keep viem on @era/api for the Worker graph.
  • Worker already redeployed: live /agents/hf-watch should show tokenId 2292.

Related to #30

Workstream

  • P Platform
  • C Catalog
  • H Commerce
  • A Agents
  • S Signal

Review first

  • apps/api/src/app.ts import path
  • packages/commerce export map

Out of scope

  • Pages VITE_CHAIN=bsc-testnet (dashboard + rebuild)

Test plan

  • wrangler deploy --dry-run
  • pnpm --filter @era/api typecheck
  • pnpm --filter @era/api cf:deploy succeeded

Wrangler failed to resolve viem via the commerce barrel. Point the API at @era/commerce/mock and declare viem so cf:deploy ships the post-#35 catalog.

Co-authored-by: Cursor <cursoragent@cursor.com>
@TOMOKI977
TOMOKI977 merged commit be1eebe into main Sep 9, 2026
1 check passed
@TOMOKI977
TOMOKI977 deleted the fix/api-worker-commerce-mock-import branch September 9, 2026 23:15
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