Revert "Remove baseurl for custom domain"

This reverts commit 8687a357b44f8fca8da6cadd68a39ce6e4259f19.