Skip to content

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 variable set in /environment/index.json in the environment named dailyplanet-sandbox.)

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

Property nameData typePurpose
FUSION_SERVICE_WORKERbooleanThis environment variable controls if the service worker is included in the compiled bundle. The default value is false.
RESIZER_TOKEN_VERSIONstringString containing the image resizer version for your organization. You should confirm your token value in the Delivery API.
Example: 2
SIGNING_SERVICE_DEFAULT_APPstringSpecifies the use of the image resizer on your blocks.
Example: resizer
allowedImageDomainsstringComma-separated list of non-Arc domains where images can be served from on your website.
Example: archive.example.com,my-non-Arc-site.com
playerRooturlURL to root domain of POWA video player assets.
Example: playerRoot://d2w3jw6424abwq.cloudfront.net
searchKeystringThe 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"
}
videoOrgstringName of your organization in Video Center.