18 lines
315 B
JavaScript
18 lines
315 B
JavaScript
const { defineConfig } = require('vite');
|
|
const react = require('@vitejs/plugin-react');
|
|
|
|
module.exports = defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
host: '0.0.0.0',
|
|
port: 3000,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://backend:5000',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
});
|
|
|