Skip to content

Remove the permanently-off Vercel integration flags and the dead migrate route #431

Description

@charlesrhoward

Problem

Five feature flags are hard-coded false and gate an unfinished personal-Vercel integration. About 360 of the 409 lines in one route are unreachable, and two MCP tools always answer "integration required". A five-line /api/migrate route returns 404 and nothing else.

Where

  • app/api/vercel/targets/route.ts:25 (flag), guards at :196 and :324.
  • app/api/profile/vercel-billing/route.ts:15,157.
  • lib/mogplex-api/env-vars.ts:47,242,272,347 (this is what mogplex_set_env_var and mogplex_list_env_vars call).
  • lib/repo-settings.ts:18,170.
  • lib/sandbox/billing.ts:7,69.
  • app/api/migrate/route.ts.

Fix

Ask the maintainer first whether the Vercel integration is being finished or abandoned. Then either:

  • Abandoned: delete the flags and every branch behind them, delete the route if it becomes empty, update the two MCP tools to return a clear "not supported" error, and delete /api/migrate.
  • Being finished: replace the hard-coded false with one environment-driven flag in lib/flags.ts (or wherever flags live) so the code can be turned on in preview.

Exit criteria

  • rg -n 'const .*= false' app/api/vercel app/api/profile lib/mogplex-api lib/repo-settings.ts lib/sandbox/billing.ts returns no flag declarations.
  • app/api/migrate no longer exists, or has a documented purpose.
  • MCP mogplex_list_env_vars returns either data or a single clear error message (test via the CLI or the MCP inspector and paste the result).
  • Line count of app/api/vercel/targets/route.ts is posted before and after.
  • pnpm lint, pnpm typecheck, pnpm test:unit pass.

https://claude.ai/code/session_01SQ4nS96XYRztd5w9QkubPf

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Hygiene, coverage, performance, accessibility.choreCleanup with no behaviour change.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions