mirror of
https://github.com/screego/server.git
synced 2025-12-24 12:57:51 +08:00
20 lines
443 B
TypeScript
20 lines
443 B
TypeScript
import {defineConfig} from 'vite';
|
|
import react from '@vitejs/plugin-react-swc';
|
|
|
|
export default defineConfig({
|
|
base: './',
|
|
server: {
|
|
host: '127.0.0.1',
|
|
port: 3000,
|
|
open: false,
|
|
proxy: {
|
|
'^/(config|logout|login|stream)$': {
|
|
target: 'http://localhost:5050',
|
|
ws: true,
|
|
},
|
|
},
|
|
},
|
|
build: {outDir: 'build/'},
|
|
plugins: [react()],
|
|
});
|