docs: self-hosting guide v1 (#481)
* feat: selfhosting guide v1 #238 * use public env on frontend * add docker desclaimer
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -8,8 +8,6 @@ import 'dotenv/config';
|
||||
const useNodeAdapter =
|
||||
process.env.IS_SELFHOSTED === 'true' && process.env.DEPLOYMENT_PROVIDER === 'docker';
|
||||
|
||||
console.log('\n\n======config', process.env.IS_SELFHOSTED, process.env.DEPLOYMENT_PROVIDER);
|
||||
|
||||
/** @type {import('@sveltejs/kit').Config} */
|
||||
const config = {
|
||||
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
|
||||
|
||||
Reference in New Issue
Block a user