1import { GcpEnvironment } from "@/GCP/Environment";
2import { MinimumLogLevel } from "effect/References";
3import * as Effect from "effect/Effect";
4
5export const logLevel = Effect.provideService(
6 MinimumLogLevel,
7 process.env.DEBUG ? "Debug" : "Info",
8);
9
10export const currentProject = GcpEnvironment.current.pipe(
11 Effect.map((env) => env.project),
12);
13
14export const location = "global";
15
16export const currentParent = currentProject.pipe(
17 Effect.map((project) => `projects/${project}/locations/${location}`),
18);