Hi Gaurang,
you can use constant variables which you can change depending on your environment.
Create Constant in Mendix Studio Pro with default value (e.g. URL to use in localhost)
After deployment, go to the specific environment (details)
You will find the constant in the Model Options of your environment → Change the default value to a new value according to your environment and restart the app/enviroment