( currentConsoleVersion: string, )
| 43 | const globalFetch = (...req: Parameters<Fetch>) => fetch(...req); |
| 44 | |
| 45 | function buildConsoleVersionHeaders( |
| 46 | currentConsoleVersion: string, |
| 47 | ): Record<string, string> { |
| 48 | return currentConsoleVersion && currentConsoleVersion.length > 0 |
| 49 | ? { |
| 50 | "X-MATERIALIZE-VERSION": currentConsoleVersion, |
| 51 | } |
| 52 | : {}; |
| 53 | } |
| 54 | |
| 55 | // User and password used to connect to Materialize during flexible deployment mode. |
| 56 | // These are required fields for the Websocket API for self-managed without auth. |