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

// https://vite.dev/config/
export default defineConfig(({mode}) => {
  let config: UserConfig = {
    plugins: [react()],
  }
  if (mode === 'production') {
    config.base = '/hudi_services/service_web'
  }
  return config
})
