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

export default defineConfig({
  plugins: [vue()],
  server: {
    port: 3100,
    proxy: {
      '/api': {
        target: 'http://localhost:5000',
        changeOrigin: true,
      },
      '/dav': {
        target: 'http://localhost:5000',
        changeOrigin: true,
      },
      '/ical': {
        target: 'http://localhost:5000',
        changeOrigin: true,
      },
    },
  },
})
