import { fileURLToPath } from 'url'; import { dirname, resolve } from 'path'; import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); export default defineConfig({ server: { port: 3000, host: '0.0.0.0', }, plugins: [react()], resolve: { alias: { '@': resolve(__dirname, './src'), } } });