mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-18 08:17:44 +02:00
20 lines
569 B
TypeScript
20 lines
569 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 runLifecycle = !process.env.FAST;
|
|
|
|
export const currentProject = GcpEnvironment.current.pipe(
|
|
Effect.map((env) => env.project),
|
|
);
|
|
|
|
export const location = "us-central1";
|
|
|
|
export const currentParent = currentProject.pipe(
|
|
Effect.map((project) => `projects/${project}/locations/${location}`),
|
|
);
|