mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-30 21:01:54 +08:00
The payments-demo page and API routes referenced the internal project's
plan catalog (emails_per_month, products team/growth, PLAN_LIMITS/resolvePlanId)
from @hexclave/shared/plans. But the demo runs against a development-environment
project provisioned from examples/demo/hexclave.config.ts, which declares a
different catalog: items api_calls/seats and products pro/team_pro/extra_seats.
As a result team.useItem("emails_per_month") threw ItemNotFound and crashed
the whole payments-demo page. Switch the demo to its own catalog:
- useItem("seats") + seat-based metrics instead of email-quota metrics
- buy team_pro / extra_seats instead of team / growth
- a local resolveTeamPlan() instead of resolvePlanId()/PLAN_LIMITS
- update create-checkout-url + config-check routes to match
|
||
|---|---|---|
| .. | ||
| cjs-test | ||
| convex | ||
| demo | ||
| docs-examples | ||
| e-commerce | ||
| js-example | ||
| lovable-react-18-example | ||
| middleware | ||
| react-example | ||
| supabase | ||
| tanstack-start-demo | ||