mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-19 16:57:44 +02:00
18 lines
516 B
TypeScript
18 lines
516 B
TypeScript
import { GcpEnvironment } from "@/GCP/Environment";
|
|
import { MinimumLogLevel } from "effect/References";
|
|
import * as Effect from "effect/Effect";
|
|
|
|
export const logLevel = Effect.provideService(
|
|
MinimumLogLevel,
|
|
process.env.DEBUG ? "Debug" : "Info",
|
|
);
|
|
|
|
export const currentProject = GcpEnvironment.current.pipe(
|
|
Effect.map((env) => env.project),
|
|
);
|
|
|
|
export const location = "global";
|
|
|
|
export const currentParent = currentProject.pipe(
|
|
Effect.map((project) => `projects/${project}/locations/${location}`),
|
|
);
|