Vercel is the recommended deployment platform for Next.js applications, and Resume Check Karo is built to work with it out of the box. Vercel handles CI/CD automatically on every push, provides edge caching for static assets, and integrates directly with GitHub — making it the fastest path from a local clone to a live, production-ready analyzer.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/nayalsaurav/resume-analyzer/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before deploying, make sure you have the following ready:Vercel Account
A free Vercel account is sufficient to get started. Pro is recommended for longer AI response timeouts.
PostgreSQL Database
A hosted PostgreSQL instance from Neon, Supabase, or Railway. You’ll need the full connection string.
Clerk Application
A Clerk application with publishable and secret keys, configured for your production domain.
Google AI & ImageKit
A Google AI Studio API key and an ImageKit account with URL endpoint, public key, and private key.
Deployment Steps
Fork or clone the repository
Start by forking the Resume Check Karo repository to your own GitHub account, or pushing your local clone to a new GitHub repo. Vercel deploys directly from GitHub, so the project must be hosted there.
Import the project on Vercel
Go to vercel.com/new and click Import Git Repository. Select the GitHub repo you just pushed. Vercel will automatically detect the Next.js framework and pre-fill the build settings:
Do not click Deploy yet — configure your environment variables first.
| Setting | Value |
|---|---|
| Framework Preset | Next.js (auto-detected) |
| Build Command | npm run build |
| Output Directory | .next |
| Install Command | npm install |
Configure environment variables
In the Vercel project settings, navigate to Settings → Environment Variables and add all eight required variables. Make sure to set each variable for the Production environment (and optionally Preview/Development if needed).
| Variable | Description |
|---|---|
DATABASE_URL | Full PostgreSQL connection string from Neon, Supabase, or Railway. Must include the database name, user, password, and host. |
GOOGLE_API_KEY | Your Google Gemini API key from Google AI Studio. Controls access to the AI analysis endpoint. |
GOOGLE_AI_MODEL | The Gemini model to use, e.g. gemini-1.5-flash. Flash is faster and cheaper; Pro is more accurate for complex resumes. |
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY | Clerk publishable key — safe to expose to the browser. Found in your Clerk dashboard under API Keys. |
CLERK_SECRET_KEY | Clerk secret key — server-only. Never prefix with NEXT_PUBLIC_. Found in your Clerk dashboard under API Keys. |
NEXT_PUBLIC_IMAGEKIT_URL_ENDPOINT | Your ImageKit URL endpoint, e.g. https://ik.imagekit.io/your_id. Used client-side for image rendering. |
IMAGEKIT_PUBLIC_KEY | ImageKit public key from Developer options in your ImageKit dashboard. Used for client-side upload authentication. |
IMAGEKIT_PRIVATE_KEY | ImageKit private key — server-only. Used to sign upload tokens. Never expose this to the client. |
Run Prisma migrations
Before your first deploy (or any time you change the database schema), you need to apply migrations to your production PostgreSQL database.Run the following command locally with your production Alternatively, you can add a This ensures migrations always run before the Next.js build completes on Vercel.
DATABASE_URL set in a .env file or inline:migrate dev vs migrate deploy — prisma migrate dev is for local development only: it creates new migration files and can reset your database. prisma migrate deploy is safe for production: it applies only pending, already-committed migration files without any interactive prompts or destructive resets.postdeploy script or a Vercel deploy hook that runs npx prisma migrate deploy automatically after each deployment. A simple approach is to update your build script:Deploy
Click Deploy on Vercel (or push a new commit — Vercel will trigger automatically). The build pipeline runs:The
next-sitemap postbuild step automatically generates sitemap.xml and robots.txt in the public/ directory based on next-sitemap.config.js. No extra configuration is needed on Vercel — it runs as part of the standard build.Once the build succeeds, Vercel will provide a live URL such as https://resume-analyzer-<hash>.vercel.app. Your production deployment is also reachable at resumecheckkaro.nayalsaurav.tech.Configure Clerk redirect URLs
After your first successful deploy, you must register your Vercel domain with Clerk so authentication flows work correctly in production.
- Open your Clerk dashboard and select your application.
- Go to Domains and add your Vercel production domain (e.g.
https://resume-analyzer.vercel.appor your custom domain). - Under Paths, set the Sign-in redirect URL to
/dashboardso authenticated users land on their resume dashboard after login. - Add any Vercel preview deployment URLs (e.g.
https://resume-analyzer-git-*.vercel.app) to Allowed redirect origins if you want auth to work in preview deployments as well.
Timeout Considerations
Build & Output Reference
| Property | Value | Notes |
|---|---|---|
| Build command | npm run build | Runs next build + next-sitemap postbuild |
| Output directory | .next | Next.js default; do not change |
| Install command | npm install | Standard Node package install |
| Node.js version | 18.x or 20.x | Set in Vercel project settings under General |
If you use a custom domain, set it in Vercel → Settings → Domains and update the Clerk domain allowlist accordingly. The default production URL is
https://resumecheckkaro.nayalsaurav.tech, defined in app/layout.tsx and next-sitemap.config.js.