25 lines
469 B
JavaScript
25 lines
469 B
JavaScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
server: {
|
|
port: 8083,
|
|
strictPort: true,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:8082',
|
|
changeOrigin: true
|
|
},
|
|
'/uploads': {
|
|
target: 'http://localhost:8082',
|
|
changeOrigin: true
|
|
},
|
|
'/ws': {
|
|
target: 'ws://localhost:8082',
|
|
ws: true
|
|
}
|
|
}
|
|
}
|
|
})
|