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

Function getE2eTestStack

console/src/config/currentStack.ts:19–27  ·  view source on GitHub ↗
(hostname: string)

Source from the content-addressed store, hash-verified

17// https://github.com/microsoft/playwright/issues/17368
18// local.dev.materialize.com is a real DNS entry pointing to the loopback address
19const getE2eTestStack = (hostname: string) => {
20 const isLocalStack =
21 hostname === "local.dev.materialize.com" || hostname === "localhost";
22 const cloudHost = process.env.CLOUD_HOST || "staging.cloud.materialize.com";
23
24 if (isLocalStack) return "local";
25 if (cloudHost === "cloud.materialize.com") return "production";
26 return "staging";
27};
28
29/**
30 * The current stack is a string value that represents which cloud resources the console

Callers 1

getCurrentStackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected