Disable ionic proxy

Hello all,
I am working on an ionic app where the app calls api for authentication.
I have successfully setup the proxy in ionic as i was getting CORS error in the api call.
Now when i try to build the project in either browser or android app, the actual URL that was setup in proxy settings was not being taken and instead the localhost URL is being called.
Example:
URL in ionic serve:
www.mydomain.com/user/login/
URL after build:
localhost:8100/user/login

I know i am missing something, but i got no idea in removing proxy settings as i a a newbie.
Please help me out.