Update stuff to handle custom domain.