fix: refine SSR configuration based on self-hosted environment and simplify external dependencies

This commit is contained in:
Rotimi Best
2026-03-11 12:36:21 +01:00
parent d98ebe8d72
commit a39efb7b99
2 changed files with 2 additions and 9 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import { PUBLIC_IS_SELFHOSTED } from '$env/static/public';
import { getBaseMetaTags } from '$lib/utils/functions/metaTags';
import { getOrgSiteInfo } from '$features/app/layout-setup';
export const ssr = true;
export const ssr = PUBLIC_IS_SELFHOSTED === 'true' ? false : true;
interface LoadOutput {
orgSiteName: string;
+1 -8
View File
@@ -20,14 +20,7 @@ export default ({ mode }) => {
sourcemap: false
},
ssr: {
noExternal: [
'svelte-sonner',
'layerchart',
'svelte-toolbelt',
'intl-messageformat',
'@formatjs/icu-messageformat-parser',
'@sveltekit-i18n/parser-icu'
]
noExternal: ['svelte-sonner', 'layerchart', 'svelte-toolbelt']
},
optimizeDeps: {
entries: ['src/routes/**/+*.{js,ts,svelte}'],