17 lines
326 B
TypeScript
17 lines
326 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
proxy: {
|
|
'/api': 'http://localhost:3000',
|
|
'/images': 'http://localhost:3000',
|
|
},
|
|
},
|
|
build: {
|
|
outDir: '../backend/public',
|
|
emptyOutDir: true,
|
|
},
|
|
});
|