jiuyiUniapp/jiuyi2/vite.config.js

45 lines
696 B
JavaScript

import {
defineConfig
} from 'vite';
import uni from '@dcloudio/vite-plugin-uni';
let target = 'http://91f.xyz:8080'
<<<<<<< HEAD
// let target = 'http://g8rbs6.natappfree.cc'
=======
>>>>>>> 1fb340263bba19031e365ab883932f3f4c4806e3
export default defineConfig({
plugins: [uni()],
server: {
host: "0.0.0.0",
port: 5173,
proxy: {
"/system": {
target,
changeOrigin: true,
},
"/shopify": {
target,
changeOrigin: true,
},
"/user": {
target,
changeOrigin: true,
},
"/coreplay": {
target,
changeOrigin: true,
},
"/file": {
target,
changeOrigin: true,
},
"/video": {
target,
changeOrigin: true,
},
}
}
})