diff --git a/src/app/[orgId]/settings/resources/public/[niceId]/general/page.tsx b/src/app/[orgId]/settings/resources/public/[niceId]/general/page.tsx
index 70370235b..d3d9b817e 100644
--- a/src/app/[orgId]/settings/resources/public/[niceId]/general/page.tsx
+++ b/src/app/[orgId]/settings/resources/public/[niceId]/general/page.tsx
@@ -455,7 +455,7 @@ export default function GeneralForm() {
)}
{ !["tcp", "udp"].includes(
resource.mode
- ) && (
+ ) && !env.flags.disableEnterpriseFeatures && (
<>
diff --git a/src/app/[orgId]/settings/sites/create/page.tsx b/src/app/[orgId]/settings/sites/create/page.tsx
index 5ea6496fd..e081f2149 100644
--- a/src/app/[orgId]/settings/sites/create/page.tsx
+++ b/src/app/[orgId]/settings/sites/create/page.tsx
@@ -23,7 +23,7 @@ import {
} from "@app/components/ui/form";
import HeaderTitle from "@app/components/SettingsSectionTitle";
import { z } from "zod";
-import { createElement, useEffect, useState } from "react";
+import { useEffect, useState } from "react";
import { useForm } from "react-hook-form";
import { zodResolver } from "@hookform/resolvers/zod";
import { Input } from "@app/components/ui/input";
@@ -37,15 +37,6 @@ import {
InfoSections,
InfoSectionTitle
} from "@app/components/InfoSection";
-import {
- FaApple,
- FaCubes,
- FaDocker,
- FaFreebsd,
- FaWindows
-} from "react-icons/fa";
-import { SiNixos, SiKubernetes } from "react-icons/si";
-import { Checkbox, CheckboxWithLabel } from "@app/components/ui/checkbox";
import { Alert, AlertDescription, AlertTitle } from "@app/components/ui/alert";
import { generateKeypair } from "../[niceId]/wireguardConfig";
import { createApiClient, formatAxiosError } from "@app/lib/api";
diff --git a/src/app/navigation.tsx b/src/app/navigation.tsx
index 43323ba2f..853a2df98 100644
--- a/src/app/navigation.tsx
+++ b/src/app/navigation.tsx
@@ -156,10 +156,11 @@ export const orgNavSections = (
]
: []),
// PaidFeaturesAlert
- ...((build === "oss" && !env?.flags.disableEnterpriseFeatures) ||
- build === "saas" ||
- env?.app.identityProviderMode === "org" ||
- (env?.app.identityProviderMode === undefined && build !== "oss")
+ ...(!env?.flags.disableEnterpriseFeatures &&
+ (build === "saas" ||
+ env?.app.identityProviderMode === "org" ||
+ (env?.app.identityProviderMode === undefined &&
+ build !== "oss"))
? [
{
title: "sidebarIdentityProviders",
diff --git a/src/components/newt-install-commands.tsx b/src/components/newt-install-commands.tsx
index f2b3d0ca3..23dd072ed 100644
--- a/src/components/newt-install-commands.tsx
+++ b/src/components/newt-install-commands.tsx
@@ -20,6 +20,7 @@ import {
} from "react-icons/fa";
import { ExternalLink } from "lucide-react";
import { SiKubernetes, SiNixos } from "react-icons/si";
+import { useEnvContext } from "@app/hooks/useEnvContext";
export type CommandItem = string | { title: string; command: string };
@@ -50,9 +51,12 @@ export function NewtSiteInstallCommands({
version = "latest"
}: NewtSiteInstallCommandsProps) {
const t = useTranslations();
+ const { env } = useEnvContext();
const [acceptClients, setAcceptClients] = useState(true);
- const [allowPangolinSsh, setAllowPangolinSsh] = useState(true);
+ const [allowPangolinSsh, setAllowPangolinSsh] = useState(
+ !env.flags.disableEnterpriseFeatures
+ );
const [platform, setPlatform] = useState("linux");
const [architecture, setArchitecture] = useState(
() => getArchitectures(platform)[0]
@@ -306,27 +310,29 @@ WantedBy=default.target`
>
{t("siteAcceptClientConnectionsDescription")}
- {supportsSshOption && (
- <>
-
- {
- const value = checked as boolean;
- setAllowPangolinSsh(value);
- }}
- label="Allow Pangolin SSH"
- />
-
-
- {t("sitePangolinSshDescription")}
-
- >
- )}
+ {supportsSshOption &&
+ !env.flags.disableEnterpriseFeatures && (
+ <>
+
+ {
+ const value =
+ checked as boolean;
+ setAllowPangolinSsh(value);
+ }}
+ label="Allow Pangolin SSH"
+ />
+
+
+ {t("sitePangolinSshDescription")}
+
+ >
+ )}
)}