docs: self-hosting guide v1 (#481)

* feat: selfhosting guide v1 #238

* use public env on frontend

* add docker desclaimer
This commit is contained in:
Rotimi Best
2024-09-30 01:20:19 +01:00
committed by GitHub
parent 47823dbf9c
commit 91bd9d4414
8 changed files with 148 additions and 13 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
import { writable, derived } from 'svelte/store';
import { dev, browser } from '$app/environment';
import { env } from '$env/dynamic/public';
import { STEPS } from '../constants/quiz';
import type { Writable } from 'svelte/store';
import type { CurrentOrg, OrgTeamMember, OrgAudience } from '../types/org';
@@ -54,7 +55,7 @@ export const currentOrgDomain = derived(currentOrg, ($currentOrg) => {
});
export const isFreePlan = derived(currentOrg, ($currentOrg) => {
if (!$currentOrg.id) return false;
if (!$currentOrg.id || env.IS_SELFHOSTED === 'true') return false;
const plan = getActivePlan($currentOrg);