Skip to content

Commit

Permalink
force preview host
Browse files Browse the repository at this point in the history
  • Loading branch information
lostbean committed Mar 27, 2024
1 parent c387d44 commit cf537d9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion enclave-manager/web/packages/app/src/client/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit cf537d9

Please sign in to comment.