Skip to content
Myr

layer-repos.ts

This file

Path

apps/platform/src/visibility/layer-repos.ts

15 lines · 577 bytes · TypeScript

Last changed by

Merge build/comments-platform into mainoscabrielbefore adoptionddf09e8

History of this file

Take it

The walk stopped after 200 commits: lines older than 678c8b8 point at it.

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

lines 1–15why, one step back
1import type { Fetch } from "@repo/artifacts/fetch";
2import { RepoHost } from "@repo/artifacts/repo-host";3import { RepoHostBinding } from "@repo/artifacts/repo-host/binding";4import { LayerRepos } from "@repo/visibility/layer-repos";5import { Layer } from "effect";67import type { PlatformConfig } from "../platform.ts";89export const layerRepos = (10 config: PlatformConfig11): Layer.Layer<LayerRepos, never, Fetch> =>12 Layer.effect(13 LayerRepos,14 RepoHost.useSync((host) => LayerRepos.of(host))15 ).pipe(Layer.provide(RepoHostBinding.layer(config.ARTIFACTS_PRIVATE)));