24 lines
446 B
TypeScript
24 lines
446 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
export default defineConfig({
|
|
root: 'frontend',
|
|
plugins: [react()],
|
|
build: {
|
|
outDir: '../dist',
|
|
emptyOutDir: true,
|
|
},
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:8787',
|
|
changeOrigin: true,
|
|
},
|
|
'/health': {
|
|
target: 'http://localhost:8787',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
});
|