| 1 | import { GcpEnvironment } from "@/GCP/Environment"; |
| 2 | import * as Effect from "effect/Effect"; |
| 3 | import { MinimumLogLevel } from "effect/References"; |
| 4 | |
| 5 | export const logLevel = Effect.provideService( |
| 6 | MinimumLogLevel, |
| 7 | process.env.DEBUG ? "Debug" : "Info", |
| 8 | ); |
| 9 | |
| 10 | export const runLifecycle = !process.env.FAST; |
| 11 | |
| 12 | export const currentProject = GcpEnvironment.current.pipe( |
| 13 | Effect.map((env) => env.project), |
| 14 | ); |
| 15 | export const location = "us-central1"; |
| 16 | /** Analytics Hub listings/query templates delete reliably in the US multi-region. */ |
| 17 | export const hubLocation = "US"; |
| 18 | export const primaryContactOf = (project: string) => |
| 19 | `alchemy-testing@${project}.iam.gserviceaccount.com`; |