Commit b3b8848
committed
feat: migrate from Next.js 14 to Next.js 16
BREAKING CHANGE: Major version upgrade with significant changes
## Core Updates
- Upgrade Next.js from 14.2.26 to 16.0.3
- Upgrade React from 18.2.0 to 19.x
- Upgrade TypeScript from 5.1.6 to 5.6.x
- Enable React Compiler for automatic memoization
## Authentication (NextAuth v4 → v5)
- Migrate to NextAuth 5.0.0-beta.30 (Auth.js)
- Create new auth.ts with handlers, auth, signIn, signOut exports
- Update API route to use new handlers pattern
- Update middleware to use auth() wrapper
- Update utils/auth.ts to use new auth() function
- Update type declarations for v5 compatibility
## Dependency Updates
- Update Storybook from 7.5.3 to 8.4.x for React 19 support
- Update embla-carousel-react from 7.1.0 to 8.5.x
- Update apexcharts from 3.x to 4.x
- Update eslint-config-next to 16.x
- Remove deprecated @mantine/next package
- Add babel-plugin-react-compiler
## Configuration Changes
- Update next.config.js with reactCompiler option
- Update tsconfig.json target to ES2017
- Add avatar property to User type
## Other Fixes
- Handle Clerk authentication gracefully when not configured
- Fix TypeScript errors related to Set iteration1 parent 9a1f2b3 commit b3b8848
File tree
10 files changed
+20285
-85
lines changed- app
- api/auth/[...nextauth]
- auth/clerk
- types
- utils
10 files changed
+20285
-85
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
17 | 63 | | |
18 | 64 | | |
19 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
246 | 242 | | |
247 | 243 | | |
248 | 244 | | |
249 | | - | |
250 | | - | |
| 245 | + | |
251 | 246 | | |
252 | 247 | | |
253 | 248 | | |
254 | 249 | | |
255 | 250 | | |
256 | 251 | | |
257 | | - | |
258 | | - | |
| 252 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | | - | |
4 | 2 | | |
| 3 | + | |
5 | 4 | | |
6 | 5 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
13 | 9 | | |
14 | 10 | | |
15 | 11 | | |
| |||
25 | 21 | | |
26 | 22 | | |
27 | 23 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | 24 | | |
36 | 25 | | |
37 | | - | |
| 26 | + | |
38 | 27 | | |
39 | 28 | | |
40 | 29 | | |
41 | 30 | | |
42 | | - | |
43 | | - | |
| 31 | + | |
| 32 | + | |
44 | 33 | | |
45 | 34 | | |
46 | 35 | | |
47 | 36 | | |
48 | | - | |
| 37 | + | |
49 | 38 | | |
50 | 39 | | |
51 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
6 | 9 | | |
7 | 10 | | |
0 commit comments