This commit is contained in:
salvacybersec
2025-11-11 07:46:58 +03:00
parent 36b62be2e1
commit 9f53a34cfb
2 changed files with 27 additions and 12 deletions

View File

@@ -4,6 +4,17 @@ import react from '@vitejs/plugin-react'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
// Build output will be copied to backend in Dockerfile
// For local development, keep default dist/ directory
base: '/', // Base path - root'tan servis edilecek
build: {
assetsDir: 'assets',
// Relative path'ler kullan (absolute değil)
rollupOptions: {
output: {
// Asset dosyaları için relative path
assetFileNames: 'assets/[name]-[hash][extname]',
chunkFileNames: 'assets/[name]-[hash].js',
entryFileNames: 'assets/[name]-[hash].js',
},
},
},
})