Files
Aroll-Cutter/frontend/vite.config.ts
2026-02-25 00:27:36 -08:00

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 },
},
},
})