fix(apollo): assert DEFAULT_LIMITS satisfies Record<Plan, RateLimitConfig>
loading diff…
Adds a satisfies Record<Plan, RateLimitConfig> annotation to the DEFAULT_LIMITS object in apps/apollo/src/lib/ratelimit/constants.ts.
Without this, adding a new value to the Plan enum silently leaves it uncovered in the rate-limit table; middleware.ts then casts the plan with plan as Plan and falls through to undefined behaviour at runtime.
The satisfies check makes any missing Plan key a compile-time error caught by check-types in CI.
Also imports RateLimitConfig from ./types (previously unused in this file) to complete the type constraint.
check-types locally (node_modules not installed in this worktree); relying on CI check-types to confirm the annotation is valid.Plan enum contains members not yet covered by DEFAULT_LIMITS, CI will surface a type error that must be fixed before merge.🤖 Generated with Claude Code