Api getway endpoint updated

We are facing issue while deployment API gateway End-Point (host) update most of time when internet connect down or get slow. In that case every time we have to create the new build for our apps.

Kindly help us out with permanent solution.