mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2026-05-07 09:08:05 +00:00
14 lines
296 B
TypeScript
14 lines
296 B
TypeScript
export const proxy = {
|
|
'/dev/': {
|
|
target: 'http://127.0.0.1:8888',
|
|
changeOrigin: true,
|
|
rewrite: (path: string) => path.replace(/^\/dev/, '')
|
|
},
|
|
|
|
'/prod/': {
|
|
target: 'https://show.cool-admin.com',
|
|
changeOrigin: true,
|
|
rewrite: (path: string) => path.replace(/^\/prod/, '/api')
|
|
}
|
|
};
|