# Change server.url at runtime

**URL:** <https://forum.ionicframework.com/t/change-server-url-at-runtime/242068>\
**Category:** Capacitor\
**Created:** [May 28, 2024, 6:28am UTC](https://forum.ionicframework.com/t/change-server-url-at-runtime/242068 "2024-05-28T06:28:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabac0](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/gabac0/32/147425_2.png) [@gabac0](https://forum.ionicframework.com/u/gabac0)\
**Post date:** [May 28, 2024, 6:28am UTC](https://forum.ionicframework.com/t/change-server-url-at-runtime/242068/1 "2024-05-28T06:28:38Z")

</div>

Hi there

Is there a way to change the server.url during runtime so that the app reloads to a different URL?

> **[Capacitor Configuration | Capacitor Documentation](https://capacitorjs.com/docs/config)**
>
> Configuring Capacitor

Cheers  
Cyril

---

<div class="post-metadata">

**Author:** ![twestrick](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/twestrick/32/136131_2.png) [@twestrick](https://forum.ionicframework.com/u/twestrick)\
**Post date:** [May 28, 2024, 7:48pm UTC](https://forum.ionicframework.com/t/change-server-url-at-runtime/242068/2 "2024-05-28T19:48:50Z")

</div>

What are you trying to do? `server.url` is only meant for a live reload server and not for production.

---

<div class="post-metadata">

**Author:** ![gabac0](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/gabac0/32/147425_2.png) [@gabac0](https://forum.ionicframework.com/u/gabac0)\
**Post date:** [May 28, 2024, 8:30pm UTC](https://forum.ionicframework.com/t/change-server-url-at-runtime/242068/3 "2024-05-28T20:30:05Z")

</div>

I am aware about this but it was an easy solution to wrap our pwa web app into a native app just point to the server.url.  
This app is not intended to distributed within an AppStore.

Do know any easy way to set this dynamically?
