import { TECH_LOG_ROUTE_REGISTRY } from "../src/features/tech-log/contracts/tech-log-route-contract.ts"; import { writeTechLogServingArtifact } from "./lib/tech-log-serving-artifact.ts"; import { createTechLogServingContract } from "./lib/tech-log-serving-contract.ts"; // The router owns which public paths exist. Reading them from the catalog // instead — as this did — pinned the served set to whatever the bundled fixture // contained on the day of the build. const publicRoutePaths = Object.values(TECH_LOG_ROUTE_REGISTRY) .filter((route) => route.layoutGroup === "PUBLIC") .map((route) => route.path); const studioRoutePaths = Object.values(TECH_LOG_ROUTE_REGISTRY) .filter((route) => route.layoutGroup === "STUDIO") .map((route) => route.path); const contract = createTechLogServingContract({ publicRoutePaths, studioRoutePaths }); await writeTechLogServingArtifact({ distRoot: "dist", contract });