timetracker/frontend/vite.config.js

16 lines
293 B
JavaScript
Raw Normal View History

2023-01-25 16:48:51 +00:00
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
2023-01-25 10:44:04 +00:00
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
2023-01-25 10:48:17 +00:00
server: {
proxy: {
2023-01-25 16:48:51 +00:00
'/api': {
target: 'http://127.0.0.1:8000',
changeOrigin: true
}
}
}
2023-01-25 10:48:17 +00:00
});