Files
PecHub/frontend/vite.config.ts
T
2026-03-18 20:54:43 +01:00

28 lines
513 B
TypeScript

import path from 'path'
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
server: {
host: '0.0.0.0',
port: 3000,
proxy: {
'/api': {
target: 'http://backend:8000',
changeOrigin: true,
},
'/ws': {
target: 'ws://backend:8000',
ws: true,
changeOrigin: true,
},
},
},
})