测试
This commit is contained in:
parent
a5639b87ad
commit
d215f469cc
@ -33,13 +33,15 @@ export default defineConfig(({
|
|||||||
},
|
},
|
||||||
// vite 相关配置
|
// vite 相关配置
|
||||||
server: {
|
server: {
|
||||||
port: 8888,
|
port: 5173,
|
||||||
|
//port: 8888,
|
||||||
host: true,
|
host: true,
|
||||||
open: false,
|
open: false,
|
||||||
proxy: {
|
proxy: {
|
||||||
// https://cn.vitejs.dev/config/#server-proxy
|
// https://cn.vitejs.dev/config/#server-proxy
|
||||||
'/dev-api': {
|
'/dev-api': {
|
||||||
target: 'http://47.97.125.165:8904',
|
target: 'http://localhost:9801',
|
||||||
|
//target: 'http://47.97.125.165:8904',
|
||||||
// target: 'http://192.168.1.114:9801',
|
// target: 'http://192.168.1.114:9801',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
rewrite: (p) => p.replace(/^\/dev-api/, '')
|
rewrite: (p) => p.replace(/^\/dev-api/, '')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user