Files
pit-router/frontend/vite.config.ts

26 lines
464 B
TypeScript
Raw Normal View History

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': resolve(__dirname, 'src')
}
},
server: {
port: 3000,
proxy: {
'/api': {
target: 'http://localhost:9000',
changeOrigin: true
},
'/socket.io': {
target: 'http://localhost:9000',
ws: true
}
}
}
})