({
buildConstants,
isLocalImpersonation,
}: {
buildConstants: BuildConstants;
isLocalImpersonation: boolean;
})
| 71 | } |
| 72 | |
| 73 | export 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 | |
| 85 | export function getEnvironmentdWebsocketScheme({ |
| 86 | buildConstants, |
no test coverage detected