Files
ScreenShare/apps/ScreenShareWeb/vite.config.ts
T
2026-08-07 13:15:26 +08:00

20 lines
463 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
server: {
proxy: {
'/api': {
target: process.env.VITE_API_PROXY_TARGET ?? 'http://localhost:8080',
changeOrigin: true,
},
'/health': {
target: process.env.VITE_API_PROXY_TARGET ?? 'http://localhost:8080',
changeOrigin: true,
},
},
},
})