Context
The platform started as a Lerna monorepo of React 17 apps. The new generation is standalone React 19 apps built with RSBuild, sharing a component library at runtime. Both generations serve real users at the same time, and some pages exist in both on purpose.
Constraints
- Agencies couldn't stop working while pages moved, so the old app stayed live for every page not yet rebuilt.
- React 17, 18 and 19 all run in production, and each repo has its own package manager.
- Mobile and desktop versions of the same page are rebuilt at different times.
- Users sign in on the old app, so the new one has to accept that session.
Decisions
Open each one for the trade-off behind it.
What I built
- The agency app's v2 shell: routing, the auth guard that redirects to v1, layout, header and sidebar, then the service layer with the API client, token handling and React Query.
- The sign-in handoff from v1 to v2, with the tokens cleared from the URL before the first request.
- The v2 versions of Quick Submit, Projects, Roles and parts of the Worksheet.
Result
Quick Submit, Projects, the Worksheet, Settings and the packages Quick Submit now run on v2 in production, on desktop and mobile. Every other route still goes to v1, so agencies never hit a page that doesn't exist yet. Both generations deploy on their own, and the shared library keeps their UI in step.
What I'd do differently
Treat the handoff URL as a credential from the first commit. The first version left the token in the address bar after sign-in. Removing it came a month later, and it should have been there from the start.