base

tcmts.share.base · #7vuyn2od · term · runs anywhere

Where the app is served (tcm start --base), for its links: "" at a site's root.

export const base = (): string => (globalThis as { __TCM_BASE__?: string }).__TCM_BASE__ ?? ""

used by