Deployment & Environment
The application is designed to deploy cleanly to Vercel with minimal configuration.
Deploy To Vercel
- Push the repository to GitHub.
- Import it at vercel.com/new.
- Add
GITHUB_TOKENas an environment variable if you want higher API limits. - Deploy.
No additional platform configuration is required for a standard deployment.
Environment Variables
| Variable | Required | Purpose |
|---|---|---|
GITHUB_TOKEN | No | Raises GitHub API throughput and improves reliability for batch analysis |
The token is used only on the server side in the service layer. It is never exposed to the browser.
Security Headers
The product documentation assumes the application sets the following headers through next.config.mjs:
-
X-Content-Type-Options: nosniff -
X-Frame-Options: DENY -
X-XSS-Protection -
Referrer-Policy -
Permissions-Policy
It should also disable the default Next.js fingerprint header with poweredByHeader: false.
Operational Recommendations
- Use a dedicated GitHub token in production or preview environments.
- Keep
.env.localout of version control. - Expect serverless cold starts to clear the in-memory cache.
Local Vs Hosted Behavior
| Behavior | Local dev | Vercel |
|---|---|---|
| In-memory cache | Persists until process restart | Resets on cold start |
| Token handling | Via .env.local | Via project environment variables |
| App entry | npm run dev | Automatic build and deploy |
Shareable Link Checklist
Before you send the docs or product link externally, verify:
- The deployment has
GITHUB_TOKENconfigured. - The root route redirects correctly to
/analyzer. - A sample multi-repository analysis succeeds without rate limiting.