diff --git a/apps/dashboard/src/app.html b/apps/dashboard/src/app.html index 62a2b94d..2a5f7dc0 100644 --- a/apps/dashboard/src/app.html +++ b/apps/dashboard/src/app.html @@ -10,9 +10,61 @@ %sveltekit.head% + +
+ + + + + + + + + + +

Loading...

+
%sveltekit.body%
diff --git a/apps/dashboard/src/routes/+layout.server.ts b/apps/dashboard/src/routes/+layout.server.ts index 86ca2ba5..97db59a1 100644 --- a/apps/dashboard/src/routes/+layout.server.ts +++ b/apps/dashboard/src/routes/+layout.server.ts @@ -1,10 +1,10 @@ import type { AccountOrg } from '$features/app/types'; import type { MetaTagsProps } from 'svelte-meta-tags'; import { PUBLIC_IS_SELFHOSTED } from '$env/static/public'; -import { getOrgSiteInfo } from '$features/app/layout-setup'; import { getBaseMetaTags } from '$lib/utils/functions/metaTags'; +import { getOrgSiteInfo } from '$features/app/layout-setup'; -export const ssr = PUBLIC_IS_SELFHOSTED === 'true' ? false : true; +export const ssr = true; interface LoadOutput { orgSiteName: string; diff --git a/apps/dashboard/src/routes/+layout.svelte b/apps/dashboard/src/routes/+layout.svelte index 498d974c..0a62179b 100644 --- a/apps/dashboard/src/routes/+layout.svelte +++ b/apps/dashboard/src/routes/+layout.svelte @@ -65,6 +65,11 @@ } onMount(() => { + const loadingIndicator = document.getElementById('app-loading-indicator'); + if (loadingIndicator) { + loadingIndicator.style.display = 'none'; + } + intialAppSetup(); if (data.skipAuth) return;