Robo-Dapp Separation Plan

Problem: Robo-Dapp exists as a separate Next.js app but is incorrectly imported into main App.tsx, creating build conflicts.

Current Situation

robo-hub/ (Vite app)
β”œβ”€β”€ App.tsx ← Imports from Robo-Dapp βœ— WRONG
β”œβ”€β”€ package.json (React 18.2, Vite)
β”‚
└── Robo-Dapp/ (Next.js app)
    β”œβ”€β”€ package.json (React 19.0, Next.js) ← Conflict!
    β”œβ”€β”€ app/
    └── components/

Solution: Complete Physical Separation

Phase 1: Remove All Robo-Dapp Imports from App.tsx

Files to check:

  • App.tsx (remove any Robo-Dapp imports/references)

  • Any components that reference Robo-Dapp

Action:

Phase 2: Deploy Robo-Dapp as Separate Next.js App

Deployment options:

  1. Vercel (recommended for Next.js)

  2. Same server, different port

  3. Subdomain

Phase 3: Share Services via npm Private Packages

Instead of file imports, publish shared services:

Then in Robo-Dapp:

Phase 4: API Communication Between Apps

For inter-app communication, use APIs:

Benefits

  • βœ… No build conflicts - Separate deployments, separate dependencies

  • βœ… Independent scaling - Scale Next.js app separately from Vite app

  • βœ… Clear boundaries - No accidental cross-imports

  • βœ… Faster builds - Each app builds independently

  • βœ… Technology flexibility - Can upgrade Next.js without affecting Vite

Current Status

PENDING: Requires manual review of App.tsx to find all Robo-Dapp references and remove them.

Next Steps

  1. Audit App.tsx for Robo-Dapp imports

  2. Remove imports and replace with navigation to separate URL

  3. Deploy Robo-Dapp to separate URL/port

  4. Test inter-app navigation

  5. (Future) Publish shared services as npm package

Migration Checklist

Last updated

Was this helpful?