import { defineConfig } from 'vite' import { fileURLToPath, URL } from 'node:url' import vue from '@vitejs/plugin-vue' // https://vitejs.dev/config/ export default defineConfig({ plugins: [vue()], base: './', resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) } }, server: { port: 8080, host: '0.0.0.0', cors: true, proxy: { '/api': { target: 'http://172.16.1.253:4000', changeOrigin: true // rewrite: (path) => path.replace(/^\/api/, '') } } } })