Add minio support and forntend analitycs
This commit is contained in:
@@ -51,10 +51,11 @@ export default defineConfig(({ mode }) => {
|
||||
build: {
|
||||
outDir: 'dist',
|
||||
// For production builds: ensure assets have correct paths
|
||||
// Base path should be '/' for root deployment
|
||||
// Base path should match the deployment URL
|
||||
base: process.env.VITE_BASE_URL || '/',
|
||||
// In development mode: inline source maps for better debugging
|
||||
// In production mode: external source maps
|
||||
sourcemap: isDevelopment ? 'inline' : true,
|
||||
// In production mode: external source maps (can be disabled with VITE_DISABLE_SOURCEMAPS)
|
||||
sourcemap: process.env.VITE_DISABLE_SOURCEMAPS ? false : (isDevelopment ? 'inline' : true),
|
||||
// In development mode: disable minification for readable errors
|
||||
// In production mode: use esbuild minification
|
||||
minify: isDevelopment ? false : 'esbuild',
|
||||
|
||||
Reference in New Issue
Block a user