Add frontend/vite.config.ts
This commit is contained in:
parent
49178acc24
commit
2c8fcf0192
1 changed files with 16 additions and 0 deletions
16
frontend/vite.config.ts
Normal file
16
frontend/vite.config.ts
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
server: {
|
||||
proxy: {
|
||||
'/api': 'http://localhost:8000',
|
||||
'/ws': {
|
||||
target: 'ws://localhost:8000',
|
||||
ws: true,
|
||||
},
|
||||
'/hls': 'http://localhost:8000',
|
||||
},
|
||||
},
|
||||
});
|
||||
Loading…
Reference in a new issue