servedFor

tcmts.share.servedFor · #u2vjwp2n · term · runs anywhere

Which codebase the page being made reads, if an app showing the forge's pages says (the studio: the one served, or another branch of it the browser reads, read only): set once, as that app's pages start. The forge sets none: its pages read the codebase it serves (servedCodebase).

import type { Codebase } from "#codebase/tcmts/cli/codebase";
import type { ShareCache } from "#codebase/tcmts/share";

export const servedFor: { current?: () => { cb: Codebase; cache: ShareCache } } = {}

uses

used by