import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' export default defineConfig({ plugins: [vue()], server: { proxy: { '/api': { target: 'https://cinema.kolei.ru', changeOrigin: true, rewrite: (path) => path.replace(/^\/api/, '') } } } })