Routing and deployment in site builders

Hi, I wanted to try building a website builder kinda like squarespace or wix with next, wanted to know about the routing part, like how do they assign and connect subdomains like xyz.wixsite.com or the ability to connect a custom domain like xyz.com and how does the deployment work? is it a single next app, hosting all the websites or they are all seperate websites hosted in something like a docker container? Any help would be appreciated... Thanks :D
Was this page helpful?