From 4b8cc7c4d31cbe62971466d2b6887a7e242bfed0 Mon Sep 17 00:00:00 2001 From: Owen Date: Mon, 14 Jul 2025 12:46:47 -0700 Subject: [PATCH] Control with build --- .../resources/[resourceId]/proxy/page.tsx | 53 ++++++++++--------- 1 file changed, 29 insertions(+), 24 deletions(-) diff --git a/src/app/[orgId]/settings/resources/[resourceId]/proxy/page.tsx b/src/app/[orgId]/settings/resources/[resourceId]/proxy/page.tsx index 6695585a..8d40344e 100644 --- a/src/app/[orgId]/settings/resources/[resourceId]/proxy/page.tsx +++ b/src/app/[orgId]/settings/resources/[resourceId]/proxy/page.tsx @@ -75,6 +75,7 @@ import { } from "@app/components/ui/collapsible"; import { ContainersSelector } from "@app/components/ContainersSelector"; import { useTranslations } from "next-intl"; +import { build } from "@server/build"; const addTargetSchema = z.object({ ip: z.string().refine(isTargetValid), @@ -772,30 +773,34 @@ export default function ReverseProxyTargets(props: { className="space-y-4" id="tls-settings-form" > - ( - - - { - field.onChange(val); - }} - /> - - - )} - /> + {build == "oss" && ( + ( + + + { + field.onChange( + val + ); + }} + /> + + + )} + /> + )}