An open-source, faster Devin alternative
TypeScript
Drop ?plan= redirect to Billing: signups land in the product on the trial
Mohamed Habib via Computer9cb9434ca0d0
diff --git a/web/src/App.tsx b/web/src/App.tsxindex 9bdaab1c..4007d135 100644--- a/web/src/App.tsx+++ b/web/src/App.tsx@@ -61,15 +61,11 @@ function NewProject() {}// `app.opencomputer.dev/?security=1` drops into the independent CVE Swarm-// onboarding path; `?plan=pro|max` (the site's pricing CTAs) opens that plan-// on Billing. Both survive the login round-trip via returnTo.+// onboarding path; the param survives the login round-trip via returnTo.function HomeRoute() {const [searchParams] = useSearchParams()if (searchParams.get('security') === '1')return <Navigate to="/security" replace />- const plan = searchParams.get('plan')- if (plan === 'pro' || plan === 'max')- return <Navigate to={`/billing?plan=${plan}`} replace />return managedAgentsExperimentEnabled ? <ManagedAgentsHome /> : <Dashboard />}