kanban-app/frontend/vite.config.ts

30 lines
572 B
TypeScript
Raw Normal View History

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
2026-03-20 15:08:39 +00:00
import path from 'path'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
2026-03-20 15:08:39 +00:00
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
server: {
port: 3000,
proxy: {
'/api': {
target: 'http://localhost:5000',
changeOrigin: true,
},
'/health': {
target: 'http://localhost:5000',
changeOrigin: true,
},
},
},
build: {
outDir: 'dist',
sourcemap: true,
},
})