Update vite.config.ts
This commit is contained in:
@@ -4,13 +4,15 @@ import vue from '@vitejs/plugin-vue'
|
|||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [vue()],
|
plugins: [vue()],
|
||||||
server: {
|
server: {
|
||||||
|
host: '127.0.0.1',
|
||||||
|
port: 3000,
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api/v1': {
|
'/api/v1': {
|
||||||
target: 'http://127.0.0.1:18080',
|
target: 'http://127.0.0.1:19000',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
},
|
},
|
||||||
'/api/v1/ws': {
|
'/api/v1/ws': {
|
||||||
target: 'ws://127.0.0.1:18080',
|
target: 'ws://127.0.0.1:19000',
|
||||||
ws: true,
|
ws: true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user