Files
threadcount-community/lib/edition.ts
T
ThreadCount 1bc2de655a ThreadCount Community edition
Uniform stock management for healthcare linen rooms. Licensed under the GNU AGPL v3.
2026-09-13 08:45:19 +10:00

12 lines
765 B
TypeScript

/* Which edition this process is.
*
* Hosted is threadcount.tech: plans, the operations console, the demo, the public site, and error
* reports and usage statistics that go to ThreadCount's own infrastructure. Community is the same
* code run by somebody else, from the Dockerfile, with EDITION=community in the environment: every
* feature, no plans, no ceiling, nothing reported anywhere, and none of the hosted-only doors open.
*
* Server-side only — the browser bundle never sees EDITION. Client code that must behave
* differently off threadcount.tech decides by hostname instead (components/Analytics.tsx,
* lib/glitchtip.ts), which has the same effect and needs no build-time flag. */
export const COMMUNITY = process.env.EDITION === "community";