Setting up multiple hostnames locally was the trickiest part for our team too. We ended up using a reverse proxy in Docker to route to our different Next.js front-ends, which finally mirrored the multi-site XM Cloud structure. This post nails the core complexity.