You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR upgrades Next.js to 16.2.9 and React to 19.2.7, swaps the cache handler library, and removes Vercel Analytics, dead dependencies, and the Jest test suite.
Critical: Middleware silently disabled
middleware.ts was renamed to proxy.ts and the exported function was renamed from middleware to proxy. Next.js only recognizes middleware.ts (or middleware.js) as middleware — any other filename is ignored. After this PR, locale detection and the auth redirect (e.g. /cfp, /grants, /voting) will silently stop enforcing, because the file with the config matcher will never be executed by the framework. A new middleware.ts that re-exports the proxy function (or simply keeping the original name) is needed.
Testing infrastructure removed with no replacement
jest.config.js, jest.global.setup.js, jest.setup.js, src/test-utils.tsx, all @testing-library/* devDependencies, and the pnpm test script are deleted. There is no indication a replacement test runner (e.g. Vitest) is being introduced. This leaves the frontend with zero test coverage and no runnable test command.
Node.js version requirement for new cache handler
@fortedigital/nextjs-cache-handler requires node >= 22.0.0. Confirm the Docker image and any CI/CD runners are pinned to Node 22+; if they are on 20 the cache handler initialization in instrumentation.ts will fail at startup.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Update Next.js to 16.2.9 and cleanup/remove some old deps