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:
@@ -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}'],
|
||||
|
||||
Reference in New Issue
Block a user