added cors support and started chat client
This commit is contained in:
13
packages/chat-client/vite.config.js
Normal file
13
packages/chat-client/vite.config.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
server: {
|
||||
port: 5173,
|
||||
proxy: {
|
||||
'/chat': 'http://192.168.0.205:4000',
|
||||
'/sessions': 'http://192.168.0.205:4000',
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user