refactor(api): extract cache-control header builder into utility function#3351
Conversation
|
@lokeshkumar69 is attempting to deploy a commit to the jhasourav07's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
👋 Hey @lokeshkumar69, it looks like you didn't use our PR template! The section Please update your PR description to include all required sections so we can review this properly:
You can find the full template in CONTRIBUTING.md. Just edit your PR description and the |
|
🚨 Hey @lokeshkumar69, the CI Pipeline is failing on this PR and it has been marked as Please fix the issues before this can be reviewed. Here's how: 1. Run checks locally before pushing: npm run format:check # Check Prettier formatting
npm run lint # Run ESLint
npm run typecheck # TypeScript type check
npm run test # Run unit tests (Vitest)
npm run build # Verify production build passes2. Auto-fix common issues: npm run format # Auto-fix formatting with Prettier
npm run lint -- --fix # Auto-fix lint errors where possible3. Check the full failure log here: Once you push a fix and the CI passes, the |
Description
Closes #321
Extract inline
Cache-Controlheader strings fromapp/api/streak/route.tsandapp/api/github/route.tsinto a shared utility functionbuildCacheControlHeaderinutils/cacheControl.ts.Pillar
♻️ Code Quality / Refactor
Checklist