344b1701dd
Uniform stock management for healthcare linen rooms. Licensed under the GNU AGPL v3.
12 lines
765 B
TypeScript
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";
|