We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 900d483 commit 2525a0eCopy full SHA for 2525a0e
packages/kit/src/exports/vite/index.js
@@ -545,7 +545,7 @@ function kit({ svelte_config }) {
545
// E.g. Vite generates `new URL('/asset.png', import.meta).href` for a relative path vs just '/asset.png'.
546
// That's larger and takes longer to run and also causes an HTML diff between SSR and client
547
// causing us to do a more expensive hydration check.
548
- const client_base = kit.paths.relative || kit.paths.assets ? './' : kit.paths.base;
+ const client_base = kit.paths.relative || kit.paths.assets ? './' : kit.paths.base || '/';
549
550
new_config = {
551
base: ssr ? assets_base(kit) : client_base,
0 commit comments