Commit 74a5642
Upgrade Next.js to 16.1.6 using codemod (#80)
## Summary
Upgrades Next.js from 15.5.9 to 16.1.6 using `@next/codemod`.
## Changes
### Dependencies
- Upgraded `next` package to version 16.1.6
### Codemod Applied
The following codemods from `@next/codemod@latest` were applied:
- `remove-experimental-ppr` - No changes needed (not using
experimental_ppr)
- `remove-unstable-prefix` - No changes needed (not using unstable_
prefixes)
- `middleware-to-proxy` - Renamed `middleware.ts` to `proxy.ts` and
updated function name
### Configuration Updates
#### `next.config.ts`
- Removed deprecated `eslint` configuration (no longer supported in
Next.js 16)
- Fixed `serverActions.allowedOrigins` to safely handle undefined
`ALLOWED_ORIGIN_HOST` environment variable
#### `tsconfig.json`
- Updated `jsx` option from `"preserve"` to `"react-jsx"` (React
automatic runtime, recommended by Next.js 16)
- Added `.next/dev/types/**/*.ts` to include array
### Proxy (formerly Middleware)
- Renamed `src/middleware.ts` → `src/proxy.ts`
- Renamed `middleware` function → `proxy` function
## Build Verification
✅ `npm run build` passes successfully
✅ `npm run format:check` passes
## Notes
- 1 parent 564dae8 commit 74a5642
File tree
5 files changed
+250
-217
lines changed- webapp
- src
5 files changed
+250
-217
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
3 | 8 | | |
4 | 9 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | | - | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
0 commit comments