mirror of
https://github.com/siteboon/claudecodeui.git
synced 2025-12-09 09:09:37 +00:00
19 lines
407 B
JavaScript
19 lines
407 B
JavaScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
port: process.env.VITE_PORT || 3001,
|
|
proxy: {
|
|
'/api': `http://localhost:${process.env.PORT || 3002}`,
|
|
'/ws': {
|
|
target: `ws://localhost:${process.env.PORT || 3002}`,
|
|
ws: true
|
|
}
|
|
}
|
|
},
|
|
build: {
|
|
outDir: 'dist'
|
|
}
|
|
}) |