Skip to content

chore(plans): sync server plan limits with web source of truth - #223

Merged
gkhngyk merged 1 commit into
mainfrom
chore/sync-server-plan-limits
Jun 10, 2026
Merged

gkhngyk merged 1 commit into
mainfrom
chore/sync-server-plan-limits

Conversation

@gkhngyk

@gkhngyk gkhngyk commented Jun 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

server/src/config/plans.js had drifted from the web source of truth (web/src/config/plans.ts). This PR brings the backend plan definitions back in sync so feature gating and limit enforcement match the frontend.

Changes (web = source of truth):

  • Starter: maxPlatforms 4 → 2; add allowedScrapers: ['chatgpt-web', 'perplexity-web'] and allowedModels: []; add ai_agent feature.
  • Growth: maxBrands 10 → 4; add ai_agent + shopping_analytics features.
  • Enterprise: add ai_agent + shopping_analytics features.
  • Self-Hosted: add ai_agent + shopping_analytics features.

Note: allowedScrapers / allowedModels are currently only consumed on the web (plan-engines.ts); included here for data parity with the source.

Test plan

  • node --check server/src/config/plans.js passes
  • Web tsc --noEmit shows no new errors (only pre-existing vitest type resolution errors, unrelated)
  • Verify limit/feature enforcement behaves as expected per plan

Made with Cursor

Align server/src/config/plans.js with web/src/config/plans.ts:
- Starter maxPlatforms 4 -> 2; add allowedScrapers/allowedModels
- Growth maxBrands 10 -> 4
- Add ai_agent / shopping_analytics features to match web

Co-authored-by: Cursor <[email protected]>
@gkhngyk
gkhngyk merged commit ca402ed into main Jun 10, 2026
4 checks passed
@gkhngyk
gkhngyk deleted the chore/sync-server-plan-limits branch June 10, 2026 13:14

This branch was successfully deployed

1 active deployment
Preview — 5bac04aa Deployed Jun 10, 2026 by vercel[bot]
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