You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
429 B
JavaScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
server: {
host: true,
port: 3001,
proxy: {
'/api': {
target: 'http://localhost:3000',
changeOrigin: true
},
'/ws': {
target: 'ws://localhost:3000',
ws: true
}
}
},
build: {
outDir: 'dist',
sourcemap: false
}
})