You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Temporarily disable all services and redirect to manaflow.com (#1779)
* Temporarily disable all API endpoints and redirect traffic to manaflow.com
Controlled by a single MANAFLOW_DEPRECATED flag. When true:
- Next.js middleware redirects all non-manaflow.com domains (cmux.sh,
0github.com, preview.new, cloudrouter.dev) to manaflow.com via 307
- All /api/*, /iiiii/* (PostHog), /mtrerr (Sentry) routes return 503
- Hono catch-all, Anthropic proxy, and PR review routes have backup guards
- Cloudflare edge router redirects all *.cmux.sh traffic to manaflow.com
- Convex HTTP routes return 503 via d() wrapper
- Convex crons (Morph maintenance, warm pool cleanup) disabled
- PostHog proxy rewrites in next.config.ts disabled
To restore: set MANAFLOW_DEPRECATED = false in apps/www/lib/deprecation.ts,
edge-router/src/index.ts, and packages/convex/convex/http.ts. Uncomment
crons in packages/convex/convex/crons.ts. Search "MANAFLOW_DEPRECATED" to
find all references.
* Fix httpAction import and middleware matcher
- Import httpAction from ./_generated/server (not convex/server)
- Add /api/:path* to middleware matcher so deprecation guard actually runs
- Also block /api root path (not just /api/)
* Move deprecation logic into proxy.ts (Next.js 16 compatibility)
Next.js 16 uses proxy.ts instead of middleware.ts. Having both files
causes a build error. Merged deprecation guard into proxy.ts and made
the config export a static object (required by Next.js).
---------
Co-authored-by: Lawrence Chen <lawrencecchen@users.noreply.github.com>
0 commit comments