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