1
Local Setup
- Use Node.js
22.x(same as Vercel runtime setting). - Install dependencies.
- Create
.envwith Jira + Chat credentials. - Run app and open
http://localhost:3000.
pnpm install pnpm run build pnpm run start:dev
This page documents end-to-end setup for local development and Vercel production deployment.
22.x (same as Vercel runtime setting)..env with Jira + Chat credentials.http://localhost:3000.pnpm install pnpm run build pnpm run start:dev
TEAM_NAME - Jira project key used in report logic.JIRA_DOMAIN - Jira base domain.JIRA_EMAIL - Jira account email.JIRA_API_TOKEN - Jira API token.WEBHOOK - Google Chat incoming webhook URL (when GOOGLE_CHAT_MODE=webhook).Optional but recommended: CRON_SECRET, REPORT_TIMEZONE, APP_BASE_URL.
main.git checkout main git pull --ff-only origin main npx -y vercel deploy --prod --yes npx -y vercel alias set <deployment-url> bkm4-jira-work-log-tracking.vercel.app
bkm4-jira-work-log-tracking.vercel.app.npx -y vercel env add CRON_SECRET production
npx -y vercel env add TEAM_NAME production
npx -y vercel env add JIRA_DOMAIN production
npx -y vercel env add JIRA_EMAIL production
npx -y vercel env add JIRA_API_TOKEN production
npx -y vercel env add WEBHOOK production
Settings - Branches.Default branch to main.Vercel production follows your repository default branch when Production Branch selector is not available in project settings.
If you see this message: Visitors must be logged in to Vercel and a member of your team to view your deployments, disable deployment protection:
Settings - Deployment Protection.Vercel Authentication.Production (and Preview if needed)./api/health and confirm ok: true./api/reports/run using x-cron-secret or ?token=.curl -X POST "https://bkm4-jira-work-log-tracking.vercel.app/api/reports/run?token=YOUR_CRON_SECRET"
| Item | Status | Where |
|---|---|---|
Branch for production is main |
Required | GitHub - Settings - Branches |
| Production domain alias attached | Required | Vercel - Domains / Alias |
| All production ENV variables set | Required | Vercel - Environment Variables |
| Vercel Authentication disabled (if public site expected) | Optional | Vercel - Deployment Protection |