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 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):
|
videoOrg |
string | Name of your organization in Video Center. |