fix: rename middleware.ts to proxy.ts (Next.js 16.2.7 deprecation)#4867
fix: rename middleware.ts to proxy.ts (Next.js 16.2.7 deprecation)#4867Kokila-chandrakar wants to merge 7 commits into
Conversation
|
@Kokila-chandrakar 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 @Kokila-chandrakar, 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 |
dca1115 to
2420e3f
Compare
|
Hi @JhaSourav07 , @Aamod007 |
Aamod-Dev
left a comment
There was a problem hiding this comment.
Excellent maintenance! Updating the middleware to proxy.ts correctly addresses the Next.js deprecation warning. Approving!
|
Closing this PR in favor of a cleaner version. Please refer to #5315. |
Description
Fixes #4839
Next.js 16.2.7 deprecated the
middleware.tsfile convention in favor ofproxy.ts.This caused:
⚠ The middleware file convention is deprecated. Please use proxy instead.proxy.accessibility.test.tsimports from./proxywhich didn't exist, causingTS2307: Cannot find module './proxy'Fix: Renamed
middleware.ts→proxy.tsin the project root.Pillar
Checklist before requesting a review:
CONTRIBUTING.mdfile.localhost:3000/api/streak?user=YOUR_USERNAME).npm run formatandnpm run lintlocally and resolved all errors (CI will fail otherwise).feat(themes): ...,fix(calculate): ...).README.mdif I added a new theme or URL parameter.