// vite.config.ts import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' export default defineConfig({ plugins: [vue()], server: { host: '0.0.0.0', port: 5173, proxy: { // Rule #1: Handle all search requests '/search': { target: 'http://backend_office_dev:4056', changeOrigin: true, }, // Rule #2 (NEW): Handle all authentication requests '/auth': { target: 'http://backend_office_dev:4056', changeOrigin: true, }, // Add more rules here for your other API blueprints if needed // For example, if you have delivery routes: // '/delivery': { // target: 'http://backend_office_dev:4056', // changeOrigin: true, // }, } } })