# Configuration / App Setting Values in JavaScript

**URL:** <https://forum.umbraco.com/t/configuration-app-setting-values-in-javascript/1554>\
**Category:** Questions\
**Tags:** v15, bellissima\
**Created:** [March 22, 2025, 2:27pm UTC](https://forum.umbraco.com/t/configuration-app-setting-values-in-javascript/1554 "2025-03-22T14:27:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![markadrake](https://forum.umbraco.com/user_avatar/forum.umbraco.com/markadrake/32/954_2.png) [@markadrake](https://forum.umbraco.com/u/markadrake)\
**Post date:** [March 22, 2025, 2:27pm UTC](https://forum.umbraco.com/t/configuration-app-setting-values-in-javascript/1554/1 "2025-03-22T14:27:55Z")

</div>

From my JS code in Umbraco 13, I could access some configuration values exposed here:

```auto
Umbraco.Sys.ServerVariables

```

Is there a replacement for this in the new backoffice v14/15? Say if I’m writing a package and client side I need to know the values from app settings?

---

<div class="post-metadata">

**Author:** ![karlmacklin](https://forum.umbraco.com/user_avatar/forum.umbraco.com/karlmacklin/32/1306_2.png) [@karlmacklin](https://forum.umbraco.com/u/karlmacklin)\
**Post date:** [March 22, 2025, 9:35pm UTC](https://forum.umbraco.com/t/configuration-app-setting-values-in-javascript/1554/2 "2025-03-22T21:35:54Z")

</div>

No idea myself, but I am now following this topic as I too wonder how I can access appsettings or an environment variable from the context of a custom extension web component 🙂

---

<div class="post-metadata">

**Author:** ![markadrake](https://forum.umbraco.com/user_avatar/forum.umbraco.com/markadrake/32/954_2.png) [@markadrake](https://forum.umbraco.com/u/markadrake)\
**Post date:** [March 24, 2025, 8:30pm UTC](https://forum.umbraco.com/t/configuration-app-setting-values-in-javascript/1554/3 "2025-03-24T20:30:48Z")

</div>

No luck so far.

I’ll most likely write an API endpoint to return the section(s) I care about. I’ll try to keep this bumped every 5 days until the proper solution is found.

---

<div class="post-metadata">

**Author:** ![jacob](https://forum.umbraco.com/user_avatar/forum.umbraco.com/jacob/32/145_2.png) [@jacob](https://forum.umbraco.com/u/jacob)\
**Post date:** [March 24, 2025, 11:15pm UTC](https://forum.umbraco.com/t/configuration-app-setting-values-in-javascript/1554/4 "2025-03-24T23:15:46Z")

</div>

This isn’t directly built into Umbraco anymore. We wanted a more sharp separation between server and client. Most of the variables, that were used in the core, are now available through /configuration endpoints with small, manageable models. That is an approach that keeps your client fluid.

However, you might just want to read something from appsettings quick and dirty once in a while, so here is a shameless plug for a more or less direct plug-in for `Umbraco.Sys.ServerVariables`:

> **[Server Variables | Umbraco Marketplace](https://marketplace.umbraco.com/package/umbraco.community.servervariables)**
>
> Server Variables is listed on the official Umbraco Marketplace | Information, links, and install instructions

---

<div class="post-metadata">

**Author:** ![protherj](https://forum.umbraco.com/user_avatar/forum.umbraco.com/protherj/32/200_2.png) [@protherj](https://forum.umbraco.com/u/protherj)\
**Post date:** [March 28, 2025, 4:27pm UTC](https://forum.umbraco.com/t/configuration-app-setting-values-in-javascript/1554/5 "2025-03-28T16:27:15Z")

</div>

Did you end up writing your own API endpoint for this?

I’m curious if you found a good example to follow or are just rolling your own?

---

<div class="post-metadata">

**Author:** ![system](https://forum.umbraco.com/uploads/default/original/1X/624adeddd330a3d0268a184db47946ca7e82c676.png) [@system](https://forum.umbraco.com/u/system)\
**Post date:** [April 2, 2025, 4:28pm UTC](https://forum.umbraco.com/t/configuration-app-setting-values-in-javascript/1554/6 "2025-04-02T16:28:16Z")

</div>

Closed on April 2, 2025, 4:28pm UTC

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
