| 12345678910111213141516 |
- // import type { ProxyOptions } from '@rsbuild/core'
- // type ProxyTargetList = Record<string, ProxyOptions>
- // const proxy = (env: Record<string, any>): ProxyTargetList => {
- // const { VUE_APP_MOCK_API, VUE_APP_BASE_API, VUE_APP_IS_MOCK } = env
- // return {
- // '/dev-api': {
- // target: VUE_APP_IS_MOCK === 'true' ? VUE_APP_MOCK_API : VUE_APP_BASE_API,
- // changeOrigin: true,
- // pathRewrite: (path) => path.replace(/^\/dev-api/, ''),
- // },
- // }
- // }
- // export default proxy
|