Skip to content

Commit 2525a0e

Browse files
committed
fix for empty base path
1 parent 900d483 commit 2525a0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/kit/src/exports/vite/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ function kit({ svelte_config }) {
545545
// E.g. Vite generates `new URL('/asset.png', import.meta).href` for a relative path vs just '/asset.png'.
546546
// That's larger and takes longer to run and also causes an HTML diff between SSR and client
547547
// causing us to do a more expensive hydration check.
548-
const client_base = kit.paths.relative || kit.paths.assets ? './' : kit.paths.base;
548+
const client_base = kit.paths.relative || kit.paths.assets ? './' : kit.paths.base || '/';
549549

550550
new_config = {
551551
base: ssr ? assets_base(kit) : client_base,

0 commit comments

Comments
 (0)