import { mergeConfig, type UserConfig } from 'vite';

export default (config: UserConfig) => {
  // Important: always return the modified config
  return mergeConfig(config, {
    resolve: {
      alias: {
        '@': '/src',
      },
    },
    server: {
      host: '0.0.0.0',
      allowedHosts: [
        'cms.navana-realestate.com',
        'localhost',
        '127.0.0.1',
      ],
      hmr: {
        host: 'cms.navana-realestate.com',
      },
    },
  });
};

