Next.js Is Just a Shell, Peer to Electron
The easiest mistake in a multi-client monorepo is treating the Next.js app as the product and everything else as a port. Demote it to a shell and the package boundaries fall out — especially the one the CLI forces on you.
Say a product needs a web app, a desktop app and a CLI. The obvious path is to build the Next.js app first, then find a way to stuff it into Electron, then find something for the CLI to reuse.
That......