ulaan
This commit is contained in:
@@ -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',
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user