16 lines
522 B
TypeScript
16 lines
522 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
proxy: {
|
|
'/upload': { target: 'http://app:8080', changeOrigin: true },
|
|
'/analyze': { target: 'http://app:8080', changeOrigin: true },
|
|
'/export': { target: 'http://app:8080', changeOrigin: true },
|
|
'/download': { target: 'http://app:8080', changeOrigin: true },
|
|
'/ws': { target: 'ws://app:8080', ws: true, changeOrigin: true },
|
|
},
|
|
},
|
|
})
|