import { fileURLToPath, URL } from 'node:url' import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import { APP_BASE_PATH } from './src/config/app' export default defineConfig({ base: APP_BASE_PATH, plugins: [vue()], resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)), }, }, server: { port: 5174, proxy: { '/api': { target: process.env.VITE_API_TARGET || 'http://127.0.0.1:18080', changeOrigin: true, }, }, }, build: { outDir: 'dist', emptyOutDir: true, sourcemap: false, }, })