Skip to content

Upgrade Next.js to version 16#365

Merged
tmokmss merged 4 commits intoaws-samples:mainfrom
remote-swe-user:feature/upgrade-nextjs-16-1769670693
Jan 29, 2026
Merged

Upgrade Next.js to version 16#365
tmokmss merged 4 commits intoaws-samples:mainfrom
remote-swe-user:feature/upgrade-nextjs-16-1769670693

Conversation

@remote-swe-user
Copy link
Contributor

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.6
  • eslint-config-next: 15.3.0 → ^16.1.6
  • next-intl: ^4.1.0 → ^4.8.0 (for Next.js 16 support)
  • @aws-amplify/adapter-nextjs: 1.6.2 → 1.7.1

Breaking Changes Addressed

  1. Middleware to Proxy Migration: Next.js 16 introduces a new proxy convention to replace middleware. The file has been renamed from middleware.ts to proxy.ts and the exported function from middleware to proxy.

  2. ESLint Configuration: The eslint configuration in next.config.ts is no longer supported in Next.js 16. It has been removed.

  3. NPM Overrides: Added overrides in root package.json to enforce consistent Next.js version across all dependencies, preventing type mismatches.

Other Fixes

  • Fixed TypeScript type issue in agent-core/src/lib/messages.ts related to crypto.subtle.digest parameter type
  • Updated the patch file for @aws-amplify/adapter-nextjs to version 1.7.1

Testing

  • Verified successful build with npm run build -w @remote-swe-agents/agent-core
  • Verified successful build of webapp with required environment variables

remote-swe-app[bot] 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
@tmokmss tmokmss merged commit a94deb1 into aws-samples:main Jan 29, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants