Justin Haaheim
Squashed commit of the following:
6bfe941
raw
history blame
444 Bytes
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
// https://vitejs.dev/config/
export default defineConfig(({ command }) => {
let define = {};
if (command === 'serve') {
define = {
global: {},
};
}
return {
plugins: [react()],
define: define,
server: {
proxy: {
'/ws': {
target: 'ws://localhost:7860',
ws: true
}
},
},
}
});