This repository root (D:\PrepAI\prep-ai) already contains the main Next.js app, so deploy that folder as the Vercel project root.
- Push the repo to GitHub.
- In Vercel, click
Add New Project. - Import the repository.
- Keep the framework as
Next.js. - Keep the default build settings unless you have a custom preference.
Copy the keys from .env.example into Vercel Project Settings -> Environment Variables.
Required for the core app:
MONGODB_URIAUTH_SECRETGROQ_API_KEY
Required if you want social login:
GOOGLE_CLIENT_IDGOOGLE_CLIENT_SECRETGITHUB_IDGITHUB_SECRET
Required if you want full company research/scraping:
PYTHON_SERVICE_URLSCRAPING_SERVICE_URL
The folder services/scraping-service is a separate Python backend. Vercel will deploy the Next.js app, but that Python service should be hosted separately on a platform like Railway or Render.
If you do not deploy the Python service:
- the main app still works
- company research will show a graceful fallback message
- scraping-heavy features will be limited
After Vercel gives you the production domain:
- Set
AUTH_URLandNEXTAUTH_URLto your live site URL. - Add that same URL to Google and GitHub OAuth callback settings.
- Use MongoDB Atlas for the database
- Rotate any local secrets before going live
- Do not upload your real
.envfile to GitHub - Redeploy after changing Vercel environment variables
If you prefer CLI:
vercel
vercel --prod