19 lines
492 B
JavaScript
19 lines
492 B
JavaScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
const apiHost = process.env.VITE_API_HOST ?? 'localhost';
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
port: 5173,
|
|
watch: {
|
|
usePolling: true,
|
|
ignored: ['**/public/imoveis/**'],
|
|
},
|
|
proxy: {
|
|
'/api': {
|
|
target: `http://${apiHost}:5000`,
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
});
|