feat: add environment configuration files and update API base URL handling for production
This commit is contained in:
@@ -11,4 +11,11 @@ export default defineConfig({
|
||||
'@': path.resolve(__dirname, './src'),
|
||||
},
|
||||
},
|
||||
// Production build optimization
|
||||
build: {
|
||||
outDir: 'dist',
|
||||
sourcemap: false, // Disable source maps in production for security
|
||||
},
|
||||
// For reverse proxy deployment, ensure assets are served from root
|
||||
base: '/',
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user