From cf537d92b2ae9e8966bd1d90560ccec6497fcd21 Mon Sep 17 00:00:00 2001 From: lostbean Date: Wed, 27 Mar 2024 10:10:29 -0300 Subject: [PATCH] force preview host --- .../web/packages/app/src/client/constants.ts | 3 ++- .../src/emui/enclaves/components/tables/PortsTable.tsx | 10 +++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/enclave-manager/web/packages/app/src/client/constants.ts b/enclave-manager/web/packages/app/src/client/constants.ts index 48b733f46c..611db59ae2 100644 --- a/enclave-manager/web/packages/app/src/client/constants.ts +++ b/enclave-manager/web/packages/app/src/client/constants.ts @@ -2,7 +2,8 @@ import { isDefined } from "kurtosis-ui-components"; // Configurable: export const KURTOSIS_CLOUD_PROTOCOL = "https"; -export const KURTOSIS_CLOUD_HOST = "cloud.kurtosis.com"; +// export const KURTOSIS_CLOUD_HOST = "cloud.kurtosis.com"; +export const KURTOSIS_CLOUD_HOST = "preview.kurtosis.com"; export const KURTOSIS_CLOUD_CONNECT_PAGE = "connect"; export const KURTOSIS_CLOUD_EM_PAGE = "enclave-manager"; diff --git a/enclave-manager/web/packages/app/src/emui/enclaves/components/tables/PortsTable.tsx b/enclave-manager/web/packages/app/src/emui/enclaves/components/tables/PortsTable.tsx index 486bb5fa5c..ae38e33e8f 100644 --- a/enclave-manager/web/packages/app/src/emui/enclaves/components/tables/PortsTable.tsx +++ b/enclave-manager/web/packages/app/src/emui/enclaves/components/tables/PortsTable.tsx @@ -36,9 +36,13 @@ export const getPortTableRows = ( `${port.number}-${shortUUID(serviceUUID)}-${shortUUID(enclaveUUID)}-${shortUUID(instanceUUID)}` + `.${KURTOSIS_CLOUD_HOST}`; } else { - link = `${port.maybeApplicationProtocol ? port.maybeApplicationProtocol + "://" : ""}${publicIp}:${ - publicPorts[name].number - }`; + link = + `${KURTOSIS_CLOUD_PROTOCOL}://` + + `${port.number}-${shortUUID(serviceUUID)}-${shortUUID(enclaveUUID)}` + + `.${KURTOSIS_CLOUD_HOST}`; + // link = `${port.maybeApplicationProtocol ? port.maybeApplicationProtocol + "://" : ""}${publicIp}:${ + // publicPorts[name].number + // }`; } return { port: {