Is this the expected behaviour?
I would have expected it to be set to be custom domain.
Yes, this is expected. Here you can see the list of env vars and their expected values.