21 lines
475 B
JavaScript
21 lines
475 B
JavaScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
/**
|
|
* Vite configuration for the News Editor client.
|
|
*
|
|
* @returns {import("vite").UserConfig} Vite config object.
|
|
*/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
host: true,
|
|
port: 5173,
|
|
proxy: {
|
|
'/api': 'http://localhost:3000',
|
|
'/uploads': 'http://localhost:3000',
|
|
'/socket.io': { target: 'http://localhost:3000', ws: true },
|
|
},
|
|
},
|
|
});
|