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