Skip to content

Commit 5605531

Browse files
committed
fix the logo issue
1 parent 821f585 commit 5605531

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

vite.config.mts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,15 @@ export default defineConfig({
4646
port: process.env.PORT ? parseInt(process.env.PORT) : 5173,
4747
allowedHosts: ["deepgit.onrender.com"]
4848
},
49-
// Disable automatic public directory copying
50-
publicDir: false,
51-
// Manually copy only specific files from public
49+
// Only disable public directory copying during build
50+
publicDir: process.env.NODE_ENV === 'production' ? false : 'public',
5251
build: {
5352
rollupOptions: {
5453
input: {
5554
main: resolve(__dirname, 'index.html'),
5655
},
5756
},
58-
// Copy only specific files from public
57+
// Copy only specific files from public during build
5958
copyPublicDir: true,
6059
assetsInlineLimit: 0,
6160
},

0 commit comments

Comments
 (0)