import { API_BASE_URL, API_TARGET_URL } from './config' import type { ProxyOptions } from 'vite' export const proxy: Record = { [API_BASE_URL]: { target: API_TARGET_URL, changeOrigin: true, rewrite: path => path.replace(new RegExp(`^${API_BASE_URL}`), '') } }