I implemented it for a few SaaS apps and noticed it's the same setup for all of them.
Then I decided to build a solution that anyone can use: https://saascustomdomains.com
It's pretty cool because it allows you to save ton of time and you won't have to manage any infrastructure.