# Development urls

**URL:** <https://forum.ionicframework.com/t/development-urls/55447>\
**Category:** ionic-v3\
**Created:** [June 22, 2016, 1:55am UTC](https://forum.ionicframework.com/t/development-urls/55447 "2016-06-22T01:55:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jensengar](https://avatars.discourse-cdn.com/v4/letter/j/e9c0ed/32.png) [@jensengar](https://forum.ionicframework.com/u/jensengar)\
**Post date:** [June 22, 2016, 1:55am UTC](https://forum.ionicframework.com/t/development-urls/55447/1 "2016-06-22T01:55:41Z")

</div>

Forgive my ignorance, but is there a preferred or recommended way to use a different config file for the application depending on which environment you are running in? For example, in dev I’d like to have a `hostUrl` in a config file that points to `localhost` for all my api calls, but in prod or test have a different url. Seems like something like that should be part of the initial setup. Thanks.

---

<div class="post-metadata">

**Author:** ![itlr](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/itlr/32/97646_2.png) [@itlr](https://forum.ionicframework.com/u/itlr)\
**Post date:** [June 22, 2016, 11:28pm UTC](https://forum.ionicframework.com/t/development-urls/55447/2 "2016-06-22T23:28:50Z")

</div>

This post might give you a clue [enableProdMode() question](https://forum.ionicframework.com/t/enableprodmode-question/54896/6) Though I’m not sure if that’s the best practice.

---

<div class="post-metadata">

**Author:** ![jensengar](https://avatars.discourse-cdn.com/v4/letter/j/e9c0ed/32.png) [@jensengar](https://forum.ionicframework.com/u/jensengar)\
**Post date:** [June 23, 2016, 2:07am UTC](https://forum.ionicframework.com/t/development-urls/55447/3 "2016-06-23T02:07:20Z")

</div>

This will suit my purposes. Thanks so much.
