mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 00:23:49 +00:00
help-beta: Use CORPORATE_ENABLED instead of SHOW_BILLING_HELP_LINKS.
We should use the generic name of the env variable since we intend to use it in places without the billing help links context.
This commit is contained in:
committed by
Tim Abbott
parent
124da4d588
commit
37da139442
@@ -45,7 +45,7 @@ export default defineConfig({
|
||||
optional: true,
|
||||
default: true,
|
||||
}),
|
||||
SHOW_BILLING_HELP_LINKS: envField.boolean({
|
||||
CORPORATE_ENABLED: envField.boolean({
|
||||
context: "client",
|
||||
access: "public",
|
||||
optional: true,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
import assert from "node:assert";
|
||||
|
||||
import {SHOW_BILLING_HELP_LINKS, SHOW_RELATIVE_LINKS} from "astro:env/client";
|
||||
import {CORPORATE_ENABLED, SHOW_RELATIVE_LINKS} from "astro:env/client";
|
||||
|
||||
/* eslint-disable import/extensions */
|
||||
import RawZulipIconBarChart from "~icons/zulip-icon/bar-chart?raw";
|
||||
@@ -22,6 +22,7 @@ import RawZulipIconUserGroupCog from "~icons/zulip-icon/user-group-cog?raw";
|
||||
|
||||
const PERSONAL_SETTINGS_TYPE = "Personal settings";
|
||||
const ORGANIZATION_SETTINGS_TYPE = "Organization settings";
|
||||
const SHOW_BILLING_HELP_LINKS = CORPORATE_ENABLED;
|
||||
|
||||
// This list has been transformed one-off from `help_settings_links.py`, we
|
||||
// have added a comment in that file to update this list in case of any
|
||||
|
||||
@@ -21,7 +21,7 @@ from django.conf import settings
|
||||
def run() -> None:
|
||||
subprocess.check_call(["./tools/convert-help-center-docs-to-mdx"])
|
||||
env = os.environ.copy()
|
||||
env["SHOW_BILLING_HELP_LINKS"] = str(settings.CORPORATE_ENABLED).lower()
|
||||
env["CORPORATE_ENABLED"] = str(settings.CORPORATE_ENABLED).lower()
|
||||
subprocess.check_call(
|
||||
["/usr/local/bin/corepack", "pnpm", "build"],
|
||||
cwd="help-beta",
|
||||
|
||||
Reference in New Issue
Block a user