From ac0f851e061d46acac537342f75be8dd651dd321 Mon Sep 17 00:00:00 2001 From: cauefaleiros <125504745+bashfarelos@users.noreply.github.com> Date: Tue, 31 Mar 2026 14:39:34 -0300 Subject: [PATCH] refactor: Simplify vite.config.ts Removes unnecessary imports and configuration, streamlining the Vite setup. The core functionality remains unchanged. --- vite.config.ts | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 vite.config.ts diff --git a/vite.config.ts b/vite.config.ts deleted file mode 100644 index 0506f1b..0000000 --- a/vite.config.ts +++ /dev/null @@ -1,24 +0,0 @@ -import tailwindcss from '@tailwindcss/vite'; -import react from '@vitejs/plugin-react'; -import path from 'path'; -import {defineConfig, loadEnv} from 'vite'; - -export default defineConfig(({mode}) => { - const env = loadEnv(mode, '.', ''); - return { - plugins: [react(), tailwindcss()], - define: { - 'process.env.GEMINI_API_KEY': JSON.stringify(env.GEMINI_API_KEY), - }, - resolve: { - alias: { - '@': path.resolve(__dirname, '.'), - }, - }, - server: { - // HMR is disabled in AI Studio via DISABLE_HMR env var. - // Do not modify—file watching is disabled to prevent flickering during agent edits. - hmr: process.env.DISABLE_HMR !== 'true', - }, - }; -});