Files
MediaCollectorLibaryFrontend/vite.config.ts
Lars Behrends 4853b860fc first commit
2026-01-21 21:40:09 +01:00

22 lines
430 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
port: 3000,
proxy: {
'/api': {
target: 'http://localhost:8080',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
}
}
},
build: {
outDir: '../public/react',
emptyOutDir: true
}
})