We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d48981a commit a5a827cCopy full SHA for a5a827c
src/lib/deployment-mode.ts
@@ -1,11 +1,12 @@
1
/**
2
* Deployment mode utilities
3
- * For the open source self-hosted version
+ * Supports both self-hosted and hosted versions
4
*/
5
6
-export const DEPLOYMENT_MODE = 'selfhosted';
+export const DEPLOYMENT_MODE = process.env.DEPLOYMENT_MODE || 'selfhosted';
7
8
-export const isSelfHostedMode = () => true;
+export const isSelfHostedMode = () => DEPLOYMENT_MODE === 'selfhosted';
9
+export const isHostedMode = () => DEPLOYMENT_MODE === 'hosted';
10
11
12
* Feature flags for self-hosted version
0 commit comments