rekan_ai/vite.config.js

17 lines
376 B
JavaScript
Raw Normal View History

2025-02-07 14:01:23 +07:00
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
2025-01-20 10:03:20 +07:00
export default defineConfig({
plugins: [react()],
2025-02-07 14:01:23 +07:00
server: {
proxy: {
'/api': {
target: 'http://localhost:3000', // Ganti dengan URL backend NestJS
changeOrigin: true,
secure: false,
rewrite: (path) => path.replace(/^\/api/, '')
}
}
}
});