| 17 | // https://github.com/microsoft/playwright/issues/17368 |
| 18 | // local.dev.materialize.com is a real DNS entry pointing to the loopback address |
| 19 | const 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 |