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 369e7d6 commit 5fa7820Copy full SHA for 5fa7820
.changeset/sharp-wolves-march.md
@@ -0,0 +1,5 @@
1
+---
2
+'@sveltejs/kit': patch
3
4
+
5
+fix: pass `publicDir` Vite config in SSR
packages/kit/src/exports/vite/index.js
@@ -564,11 +564,12 @@ function kit({ svelte_config }) {
564
preserveEntrySignatures: 'strict'
565
},
566
ssrEmitAssets: true,
567
+ copyPublicDir: !ssr,
568
target: ssr ? 'node16.14' : undefined,
569
// don't use the default name to avoid collisions with 'static/manifest.json'
570
manifest: 'vite-manifest.json'
571
- publicDir: ssr ? false : kit.files.assets,
572
+ publicDir: kit.files.assets,
573
worker: {
574
rollupOptions: {
575
output: {
0 commit comments