(role, config)
| 439 | * included, so a stack with no session key mounts nothing. |
| 440 | */ |
| 441 | export function buildMarsWebEnv(role, config) { |
| 442 | if (role === "static") return { MARS_WEB: "0" }; |
| 443 | return config.sessionApiKey |
| 444 | ? { |
| 445 | MARS_WEB_KEY: config.sessionApiKey, |
| 446 | ...(config.stateDir ? { MARS_STATE_DIR: config.stateDir } : {}), |
| 447 | ...(config.secretKey ? { OH_SECRET_KEY: config.secretKey } : {}), |
| 448 | } |
| 449 | : { MARS_WEB: "0" }; |
| 450 | } |
| 451 | |
| 452 | function startStaticServer(config) { |
| 453 | // Reuse `vitePort` as the upstream port name so the ingress route table |
no outgoing calls
no test coverage detected