From f9a8150c88188e178e55cdf97f022b7b0b82c669 Mon Sep 17 00:00:00 2001 From: Rotimi Best Date: Wed, 9 Oct 2024 14:59:56 +0100 Subject: [PATCH] debug: use static env for is_selfhosted --- apps/dashboard/src/routes/+layout.server.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/dashboard/src/routes/+layout.server.ts b/apps/dashboard/src/routes/+layout.server.ts index e020b830..e1e20397 100644 --- a/apps/dashboard/src/routes/+layout.server.ts +++ b/apps/dashboard/src/routes/+layout.server.ts @@ -6,7 +6,7 @@ import { getCurrentOrg } from '$lib/utils/services/org'; import { getSupabase, supabase } from '$lib/utils/functions/supabase'; import { loadTranslations } from '$lib/utils/functions/translations'; import type { CurrentOrg } from '$lib/utils/types/org'; -import { env } from '$env/dynamic/private'; +import { IS_SELFHOSTED } from '$env/static/private'; if (!supabase) { getSupabase(); @@ -29,10 +29,10 @@ export const load = async ({ url, cookies }): Promise => { baseMetaTags: getBaseMetaTags(url) }; - console.log('env.IS_SELFHOSTED', env.IS_SELFHOSTED); + console.log('IS_SELFHOSTED', IS_SELFHOSTED); // Selfhosted usecase would be here - if (env.IS_SELFHOSTED === 'true') { + if (IS_SELFHOSTED === 'true') { const subdomain = getSubdomain(url); console.log('subdomain', subdomain);