Skip to content

Commit a5a827c

Browse files
committed
updates
1 parent d48981a commit a5a827c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/lib/deployment-mode.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
/**
22
* Deployment mode utilities
3-
* For the open source self-hosted version
3+
* Supports both self-hosted and hosted versions
44
*/
55

6-
export const DEPLOYMENT_MODE = 'selfhosted';
6+
export const DEPLOYMENT_MODE = process.env.DEPLOYMENT_MODE || 'selfhosted';
77

8-
export const isSelfHostedMode = () => true;
8+
export const isSelfHostedMode = () => DEPLOYMENT_MODE === 'selfhosted';
9+
export const isHostedMode = () => DEPLOYMENT_MODE === 'hosted';
910

1011
/**
1112
* Feature flags for self-hosted version

0 commit comments

Comments
 (0)