We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 821f585 commit 5605531Copy full SHA for 5605531
vite.config.mts
@@ -46,16 +46,15 @@ export default defineConfig({
46
port: process.env.PORT ? parseInt(process.env.PORT) : 5173,
47
allowedHosts: ["deepgit.onrender.com"]
48
},
49
- // Disable automatic public directory copying
50
- publicDir: false,
51
- // Manually copy only specific files from public
+ // Only disable public directory copying during build
+ publicDir: process.env.NODE_ENV === 'production' ? false : 'public',
52
build: {
53
rollupOptions: {
54
input: {
55
main: resolve(__dirname, 'index.html'),
56
57
58
- // Copy only specific files from public
+ // Copy only specific files from public during build
59
copyPublicDir: true,
60
assetsInlineLimit: 0,
61
0 commit comments