MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / getEnvironmentdScheme

Function getEnvironmentdScheme

console/src/config/apiUrls.ts:73–83  ·  view source on GitHub ↗
({
  buildConstants,
  isLocalImpersonation,
}: {
  buildConstants: BuildConstants;
  isLocalImpersonation: boolean;
})

Source from the content-addressed store, hash-verified

71}
72
73export function getEnvironmentdScheme({
74 buildConstants,
75 isLocalImpersonation,
76}: {
77 buildConstants: BuildConstants;
78 isLocalImpersonation: boolean;
79}) {
80 return isSqlApiTlsEnabled({ buildConstants, isLocalImpersonation })
81 ? ("https" as const)
82 : ("http" as const);
83}
84
85export function getEnvironmentdWebsocketScheme({
86 buildConstants,

Callers 2

CloudAppConfigClass · 0.90

Calls 1

isSqlApiTlsEnabledFunction · 0.85

Tested by

no test coverage detected