Override variables for each target
This feature requires the Team capability tier (the Team or Business ). During the beta, every project is on the free Solo tier, so this feature is locked by default: go to Settings ▸ Billing and request Team access to unlock it.
Variable overrides let you change specific values for a Publication target settings without creating a separate Create variable sets. This is useful when a target needs one or two different values but shares everything else with an existing set.
Before you begin
Create variable sets: you need at least one variable set before you can override its values.
You should have a Create and organize a map with at least one publication target configured.
Add an override
Open the Manage publishing page for your Create and organize a map (from the map editor's Publishing panel or the project's Publishing view).
Find the publication target you want to configure.
In the target's settings, scroll to the Variable overrides section.
Enter the variable key and the override value, then add the pair.
The override value replaces the set's value only for this target. All other variables from the set remain unchanged.
Overrides take precedence over the variable set. During publishing, the The publishing pipeline resolves each variable token by first checking for a target-level override, then falling back to the variable set's value.
For example, if the "Production" variable set contains:
{
"product_name": "Acme Pro",
"support_email": "help@acme.com",
"api_base_url": "https://api.acme.com"
}And a staging target adds this override:
{
"api_base_url": "https://api-staging.acme.com"
}The staging target resolves api_base_url to the override value while product_name and support_email come from the original set.
When to use overrides versus new sets
Scenario | Approach | Reason |
|---|---|---|
One or two values differ for a specific target | Override | Avoids duplicating an entire set for minor differences |
Most values differ between targets | New variable set | A full set is clearer than a set with many overrides |
Temporary change for a staging or preview target | Override | Easy to add and remove without affecting other targets |
Distinct product editions with different names, URLs, and version numbers | New variable set | Each edition deserves its own clearly named set |
Use overrides for environment-specific differences (staging URLs, test email addresses) while keeping your named variable sets aligned with product editions or audience segments.
Remove an override
Delete the override entry from the target settings. The variable reverts to the value from the target's selected variable set.
Removing an override immediately affects the next publish for that target. If the overridden value was critical (for example, an API URL), verify the fallback value in the variable set is correct before removing the override.
See also
Create variable sets: build the base sets that overrides modify
Use variable tokens in content: insert the tokens that overrides resolve
Publication target settings: configure targets, condition profiles, and variable sets
The publishing pipeline: how overrides are resolved during publish
Conditions versus variables: understand when to use variables versus conditions