This project is a Vite + React app. The Express server is for local development only. Production hosting on Vercel should serve the built static files from dist.
Prerequisites: Node.js
- Install dependencies:
npm install - Copy .env.example to
.env.local - Set
VITE_GEMINI_API_KEYin.env.local - Run the app:
npm run dev
- Import the GitHub repository into Vercel.
- Keep the detected framework as
Vite. - Set
VITE_GEMINI_API_KEYin the Vercel project environment variables. - Deploy. Vercel will run
npm run buildand publishdist.
The included vercel.json ensures the correct output directory and SPA fallback routing.
