env.ts
This file
Path
apps/web/src/client/env.ts
12 lines · 422 bytes · TypeScript
Last changed by
Merge build/comments-web-rest into mainoscabrielbefore adoption0eb1248
History of this fileTake it
The walk stopped after 200 commits: lines older than 678c8b8 point at it.
Merge build/comments-web-rest into mainoscabrielbefore adoption0eb1248
line 1why, one step back1// Lint keeps "shape" out of code names, so the atom is named for the schema it reads.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 2–12why, one step back2import type { ProjectName } from "@repo/protocol/ids";34import { ContractsClient } from "../surfaces.ts";5import { keys } from "./keys.ts";67export const envSchemaAtom = (project: ProjectName) =>8 ContractsClient.query(9 "envShape",10 { project },11 { reactivityKeys: [...keys.ledger(project), ...keys.project(project)] }12 );