Authentication Service in different environments.

Hi,
I have created one Authentication Service rule in, so how login url will vary according to the environments?
During deployment Pega will automatically handle it?
Or we need to update this rule in all environments?

It is considered as environment specific conversation. Please check this old post