import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

// https://vite.dev/config/
export default defineConfig({
  plugins: [react()],
  server: {
    port: 5174,
    proxy: {
      '/api': {
        // docker-compose backend 포트(8082). 로컬 spring-boot 기본은 8080
        target: 'http://localhost:8082',
        changeOrigin: true,
      },
    },
  },
})
