Show the remote nodes on enterprise pangolin dns

This commit is contained in:
Owen
2026-09-11 15:47:52 -04:00
parent fd2c397bfc
commit 5a445817e0
2 changed files with 6 additions and 3 deletions
@@ -10,6 +10,7 @@ import { getTranslations } from "next-intl/server";
import type { Metadata } from "next"; import type { Metadata } from "next";
import { build } from "@server/build"; import { build } from "@server/build";
import { redirect } from "next/navigation"; import { redirect } from "next/navigation";
import { useEnvContext } from "@app/hooks/useEnvContext";
export const metadata: Metadata = { export const metadata: Metadata = {
title: "Remote Exit Nodes" title: "Remote Exit Nodes"
@@ -24,7 +25,9 @@ export const dynamic = "force-dynamic";
export default async function RemoteExitNodesPage( export default async function RemoteExitNodesPage(
props: RemoteExitNodesPageProps props: RemoteExitNodesPageProps
) { ) {
if (build != "saas") { const { env } = useEnvContext();
if (!env?.flags.usePangolinDns) {
redirect("/"); redirect("/");
} }
+2 -2
View File
@@ -141,7 +141,7 @@ export const orgNavSections = (
href: "/{orgId}/settings/domains", href: "/{orgId}/settings/domains",
icon: <Globe className="size-4 flex-none" /> icon: <Globe className="size-4 flex-none" />
}, },
...(build === "saas" ...(env?.flags.usePangolinDns
? [ ? [
{ {
title: "sidebarRemoteExitNodes", title: "sidebarRemoteExitNodes",
@@ -467,7 +467,7 @@ export const commandBarNavSections = (
title: "commandMachineClients", title: "commandMachineClients",
icon: <Server className="size-4 flex-none" /> icon: <Server className="size-4 flex-none" />
}, },
...(build === "saas" ...(env?.flags.usePangolinDns
? [ ? [
{ {
title: "commandRemoteExitNodes", title: "commandRemoteExitNodes",