21 lines
414 B
TypeScript
21 lines
414 B
TypeScript
import { defineConfig } from 'vite'
|
|||
|
|
import vue from '@vitejs/plugin-vue'
|
||
|
|
import tailwindcss from '@tailwindcss/vite'
|
||
|
|
|
||
|
|
export default defineConfig({
|
||
|
|
plugins: [vue(), tailwindcss()],
|
||
|
|
server: {
|
||
|
|
port: 9101,
|
||
|
|
proxy: {
|
||
|
|
'/api': {
|
||
|
|
target: 'http://localhost:9100',
|
||
|
|
changeOrigin: true,
|
||
|
|
},
|
||
|
|
'/ws': {
|
||
|
|
target: 'ws://localhost:9100',
|
||
|
|
ws: true,
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
})
|