# Environment settings

Source: https://dev.arcxp.com/themes/core-concepts/environment-settings/

Your Themes feature repository requires environment variables to be created in the `/environment` directory of the repository. You can store variables that apply to all environments (for example, `production`, `sandbox`, `development`) for this organization in `/environment/index.json`.

If there are environment variables that are unique to an environment in this org, you must store them in a file that matches the exact name of that environment. For example,`/environment/dailyplanet-sandbox.json` would override variables set in `/environment/index.json` in the environment named `dailyplanet-sandbox`.

> **Note:**
> 
> You can generate the `ACCESS_TOKEN` that you need to hit the Content API in the Developer Center tile in your environment. You will need a token for prod and sandbox in your env file when switching content bases.

Here is a list of the environment variables to set in your `index.json`:

| PROPERTY NAME                  | DATA TYPE     | PURPOSE                                                                                                                                                                                                                                                                                                   |
| ------------------------------ | ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| FUSION\_SERVICE\_WORKER        | boolean       | This environment variable controls if the service worker is included in the compiled bundle. The default value is false                                                                                                                                                                                   |
| RESIZER\_TOKEN\_VERSION        | string        | String containing the image resizer version for your organization. You should confirm your token value in the Delivery API. Example: 2                                                                                                                                                                    |
| SIGNING\_SERVICE\_DEFAULT\_APP | string        | Specifies the use of the image resizer on your blocks. Example: resizer                                                                                                                                                                                                                                   |
| allowedImageDomains            | string        | Comma-separated list of non-Arc domains where images can be served from on your website. Example: archive.example.com,my-non-Arc-site.com                                                                                                                                                                 |
| playerRoot                     | url           | URL to root domain of POWA video player assets. Example: playerRoot://d2w3jw6424abwq.cloudfront.net                                                                                                                                                                                                       |
| searchKey                      | string        | The key specified from your site search API                                                                                                                                                                                                                                                               |
| siteStyles                     | string object | The object should contain the mapping of your site ID with the desired site ID styles as the value. For a single site, this will be a one-to-one mapping. Example (multi-site):"siteStyles": {   "daily-intelligencer": "daily-intelligencer",   "the-gazette": "daily-intelligencer",   "karc": "karc" } |
| videoOrg                       | string        | Name of your organization in Video Center                                                                                                                                                                                                                                                                 |
