Upgrade Next.js to version 16#365
Merged
tmokmss merged 4 commits intoaws-samples:mainfrom Jan 29, 2026
Merged
Conversation
added 4 commits
January 29, 2026 07:37
- Update next from ^15.5.9 to ^16.1.6 - Update eslint-config-next from 15.3.0 to ^16.1.6 - Update next-intl from ^4.1.0 to ^4.8.0 (for Next.js 16 support) - Update @aws-amplify/adapter-nextjs from 1.6.2 to 1.7.1 - Migrate middleware.ts to proxy.ts (Next.js 16 convention) - Remove deprecated eslint config from next.config.ts - Add npm overrides to enforce consistent Next.js version across dependencies - Fix TypeScript type issue in agent-core messages.ts
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This PR upgrades Next.js from version 15 to version 16, along with all related dependency updates.
Changes
Dependencies Updated
next: ^15.5.9 → ^16.1.6eslint-config-next: 15.3.0 → ^16.1.6next-intl: ^4.1.0 → ^4.8.0 (for Next.js 16 support)@aws-amplify/adapter-nextjs: 1.6.2 → 1.7.1Breaking Changes Addressed
Middleware to Proxy Migration: Next.js 16 introduces a new
proxyconvention to replacemiddleware. The file has been renamed frommiddleware.tstoproxy.tsand the exported function frommiddlewaretoproxy.ESLint Configuration: The
eslintconfiguration innext.config.tsis no longer supported in Next.js 16. It has been removed.NPM Overrides: Added
overridesin rootpackage.jsonto enforce consistent Next.js version across all dependencies, preventing type mismatches.Other Fixes
agent-core/src/lib/messages.tsrelated tocrypto.subtle.digestparameter type@aws-amplify/adapter-nextjsto version 1.7.1Testing
npm run build -w @remote-swe-agents/agent-core