Update Vite configuration and enhance error handling in Svelte components

- Added 'tldts' and 'tldts-core' to the Vite SSR noExternal configuration.
- Refactored error handling in +error.svelte and auth-failed/+page.svelte to use a goHome function for navigation instead of href attributes.
This commit is contained in:
Rotimi Best
2026-03-28 10:49:57 +01:00
parent b4121a9fd6
commit a58b207957
3 changed files with 12 additions and 4 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ export default ({ mode }) => {
sourcemap: false
},
ssr: {
noExternal: ['svelte-sonner', 'layerchart', 'svelte-toolbelt']
noExternal: ['svelte-sonner', 'layerchart', 'svelte-toolbelt', 'tldts', 'tldts-core']
},
optimizeDeps: {
entries: ['src/routes/**/+*.{js,ts,svelte}'],