You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
927 B
39 lines
927 B
/*
|
|
* @Author: ch cwl_ch@163.com
|
|
* @Date: 2022-11-21 17:23:51
|
|
* @LastEditors: ch
|
|
* @LastEditTime: 2022-12-30 16:32:05
|
|
* @Description: file content
|
|
*/
|
|
import { defineConfig } from 'vite'
|
|
import uni from '@dcloudio/vite-plugin-uni'
|
|
import fs from 'fs';
|
|
import path from 'path';
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
uni(),
|
|
],
|
|
server: {
|
|
// 浏览器本地开发代理配置
|
|
proxy: {
|
|
"/api": {
|
|
target: "http://192.168.40.193:8081",
|
|
changeOrigin: true,
|
|
rewrite: (path) => path.replace(/^\/api/, "/")
|
|
},
|
|
"/sseApi": {
|
|
target: "http://192.168.40.193:60001",
|
|
changeOrigin: true,
|
|
rewrite: (path) => path.replace(/^\/sseApi/, "/")
|
|
},
|
|
|
|
"/payApi": {
|
|
target: "http://192.168.40.193:9001",
|
|
changeOrigin: true,
|
|
rewrite: (path) => path.replace(/^\/payApi/, "/")
|
|
},
|
|
},
|
|
},
|
|
})
|