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 { build } from "@server/build";
import { redirect } from "next/navigation";
import { useEnvContext } from "@app/hooks/useEnvContext";
export const metadata: Metadata = {
title: "Remote Exit Nodes"
@@ -24,7 +25,9 @@ export const dynamic = "force-dynamic";
export default async function RemoteExitNodesPage(
props: RemoteExitNodesPageProps
) {
if (build != "saas") {
const { env } = useEnvContext();
if (!env?.flags.usePangolinDns) {
redirect("/");
}
+2 -2
View File
@@ -141,7 +141,7 @@ export const orgNavSections = (
href: "/{orgId}/settings/domains",
icon: <Globe className="size-4 flex-none" />
},
...(build === "saas"
...(env?.flags.usePangolinDns
? [
{
title: "sidebarRemoteExitNodes",
@@ -467,7 +467,7 @@ export const commandBarNavSections = (
title: "commandMachineClients",
icon: <Server className="size-4 flex-none" />
},
...(build === "saas"
...(env?.flags.usePangolinDns
? [
{
title: "commandRemoteExitNodes",