Uniform stock management for healthcare linen rooms: the coordinator app, the phone counter and the staff app, for your own server. Built from 794bab5 on 2026-09-16. Licensed under the Functional Source License (FSL-1.1-ALv2).
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
/* Which edition this process is.
|
||||
*
|
||||
* Hosted is threadcount.tech: plans, the demo, the public site, and its own error reports and
|
||||
* usage statistics. Community is the product run by a
|
||||
* facility on its own server, from the Dockerfile, with EDITION=community in the environment:
|
||||
* every feature a room uses, no plans, no ceiling, nothing reported anywhere.
|
||||
*
|
||||
* 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";
|
||||
|
||||
/* ⛔ Import no node built-in here. This module reaches the browser: lib/plan.ts imports it, and
|
||||
* PlanChoice, MSignup and Checkout import that. A `fs` import in this file builds fine under
|
||||
* `tsc --noEmit` and then fails `next build` with "can't resolve fs" — it is what rolled back the
|
||||
* deploy on 17 September 2026. Anything needing the filesystem belongs in lib/source.ts. */
|
||||
Reference in New Issue
Block a user