hubDir

tcmts.hub.hubDir · #6ghf26x2 · term · runs on the server

uses node:path

Where the hub's own codebase is: $TCM_HUB_CODEBASE, else .tcm/data/hub.

import path from "node:path";

export const hubDir = (): string =>
  process.env.TCM_HUB_CODEBASE || path.join(process.cwd(), ".tcm", "data", "hub")

used by