Skip rewards grant .env asserts for Brave Origin builds (#36938)

Brave Origin builds disable rewards (enable_brave_rewards =
!is_brave_origin_branded), so the rewards_grant_* endpoints are unused
and should not be required in .env.
This commit is contained in:
Brian R. Bondy
2026-06-03 11:10:24 -04:00
committed by GitHub
parent caca561b2a
commit f31799c3c6
@@ -44,8 +44,11 @@ if (is_official_build) {
}
# These args are currently used by "components/brave_adaptive_captcha" when
# rewards is disabled.
assert(rewards_grant_dev_endpoint != "")
assert(rewards_grant_staging_endpoint != "")
assert(rewards_grant_prod_endpoint != "")
# rewards is disabled. They are not needed for Brave Origin builds, which
# ship with rewards (and adaptive captcha) disabled.
if (!is_brave_origin_branded) {
assert(rewards_grant_dev_endpoint != "")
assert(rewards_grant_staging_endpoint != "")
assert(rewards_grant_prod_endpoint != "")
}
}