Skip to content

Commit d1f50a2

Browse files
authored
feat: update nextjs 16 (#2420)
1 parent d675082 commit d1f50a2

File tree

4 files changed

+49
-52
lines changed

4 files changed

+49
-52
lines changed

ui/next.config.mjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,6 @@ const nextConfig = {
8181
},
8282
},
8383
output: "standalone",
84-
eslint: {
85-
dirs: ["."],
86-
},
8784
compress: false, // disable default gzip compression by nextJS, done by Nginx
8885
cacheMaxMemorySize: 0, // disable default in-memory caching
8986
images: {

ui/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"author": "Mission apprentissage",
66
"repository": "https://github.com/mission-apprentissage/labonnealternance.git",
77
"scripts": {
8-
"dev": "yarn predev && SENTRY_SUPPRESS_GLOBAL_ERROR_HANDLER_FILE_WARNING=1 next dev --turbopack",
9-
"build": "yarn prebuild && SENTRY_SUPPRESS_GLOBAL_ERROR_HANDLER_FILE_WARNING=1 NODE_OPTIONS=--max_old_space_size=4096 next build --no-lint",
8+
"dev": "yarn predev && SENTRY_SUPPRESS_GLOBAL_ERROR_HANDLER_FILE_WARNING=1 next dev",
9+
"build": "yarn prebuild && SENTRY_SUPPRESS_GLOBAL_ERROR_HANDLER_FILE_WARNING=1 NODE_OPTIONS=--max_old_space_size=2048 next build",
1010
"start": "next start",
1111
"typecheck": "tsc -b",
1212
"analyse": "ANALYZE=true yarn build",
@@ -41,7 +41,7 @@
4141
"match-sorter": "^8.0.0",
4242
"mersenne-twister": "^1.1.0",
4343
"motion": "^12.7.4",
44-
"next": "^15.5.4",
44+
"next": "^16.0.1",
4545
"next-plausible": "^3.12.4",
4646
"next-recompose-plugins": "^3.0.1",
4747
"notion-client": "7.3.0",

ui/middleware.ts renamed to ui/proxy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const isUnallowedPathForUser = (user: IUserRecruteurPublic, pathname: string) =>
7272
)
7373
}
7474

75-
export async function middleware(request: NextRequest) {
75+
export async function proxy(request: NextRequest) {
7676
const { pathname, search } = request.nextUrl
7777
const requestHeaders = new Headers(request.headers)
7878
const session = await getSession(request)

yarn.lock

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -2647,10 +2647,10 @@ __metadata:
26472647
languageName: node
26482648
linkType: hard
26492649

2650-
"@next/env@npm:15.5.4":
2651-
version: 15.5.4
2652-
resolution: "@next/env@npm:15.5.4"
2653-
checksum: e0d22306daa5d3936ad947114ac59bb640786b626dc48b24bf58336010688a02eef3d3cb06905d7a79b3033e15471cd25b668958beb051f36103200e669ca7f5
2650+
"@next/env@npm:16.0.1":
2651+
version: 16.0.1
2652+
resolution: "@next/env@npm:16.0.1"
2653+
checksum: c218235a79c695e9c1ba153a28ed41fa4449d624a93d6a0349b25690ec023976f80d25e288eff5a4e3c1d9a2dcc586ff26f21a6e2cc99b2203b2dad21dab2685
26542654
languageName: node
26552655
linkType: hard
26562656

@@ -2672,58 +2672,58 @@ __metadata:
26722672
languageName: node
26732673
linkType: hard
26742674

2675-
"@next/swc-darwin-arm64@npm:15.5.4":
2676-
version: 15.5.4
2677-
resolution: "@next/swc-darwin-arm64@npm:15.5.4"
2675+
"@next/swc-darwin-arm64@npm:16.0.1":
2676+
version: 16.0.1
2677+
resolution: "@next/swc-darwin-arm64@npm:16.0.1"
26782678
conditions: os=darwin & cpu=arm64
26792679
languageName: node
26802680
linkType: hard
26812681

2682-
"@next/swc-darwin-x64@npm:15.5.4":
2683-
version: 15.5.4
2684-
resolution: "@next/swc-darwin-x64@npm:15.5.4"
2682+
"@next/swc-darwin-x64@npm:16.0.1":
2683+
version: 16.0.1
2684+
resolution: "@next/swc-darwin-x64@npm:16.0.1"
26852685
conditions: os=darwin & cpu=x64
26862686
languageName: node
26872687
linkType: hard
26882688

2689-
"@next/swc-linux-arm64-gnu@npm:15.5.4":
2690-
version: 15.5.4
2691-
resolution: "@next/swc-linux-arm64-gnu@npm:15.5.4"
2689+
"@next/swc-linux-arm64-gnu@npm:16.0.1":
2690+
version: 16.0.1
2691+
resolution: "@next/swc-linux-arm64-gnu@npm:16.0.1"
26922692
conditions: os=linux & cpu=arm64 & libc=glibc
26932693
languageName: node
26942694
linkType: hard
26952695

2696-
"@next/swc-linux-arm64-musl@npm:15.5.4":
2697-
version: 15.5.4
2698-
resolution: "@next/swc-linux-arm64-musl@npm:15.5.4"
2696+
"@next/swc-linux-arm64-musl@npm:16.0.1":
2697+
version: 16.0.1
2698+
resolution: "@next/swc-linux-arm64-musl@npm:16.0.1"
26992699
conditions: os=linux & cpu=arm64 & libc=musl
27002700
languageName: node
27012701
linkType: hard
27022702

2703-
"@next/swc-linux-x64-gnu@npm:15.5.4":
2704-
version: 15.5.4
2705-
resolution: "@next/swc-linux-x64-gnu@npm:15.5.4"
2703+
"@next/swc-linux-x64-gnu@npm:16.0.1":
2704+
version: 16.0.1
2705+
resolution: "@next/swc-linux-x64-gnu@npm:16.0.1"
27062706
conditions: os=linux & cpu=x64 & libc=glibc
27072707
languageName: node
27082708
linkType: hard
27092709

2710-
"@next/swc-linux-x64-musl@npm:15.5.4":
2711-
version: 15.5.4
2712-
resolution: "@next/swc-linux-x64-musl@npm:15.5.4"
2710+
"@next/swc-linux-x64-musl@npm:16.0.1":
2711+
version: 16.0.1
2712+
resolution: "@next/swc-linux-x64-musl@npm:16.0.1"
27132713
conditions: os=linux & cpu=x64 & libc=musl
27142714
languageName: node
27152715
linkType: hard
27162716

2717-
"@next/swc-win32-arm64-msvc@npm:15.5.4":
2718-
version: 15.5.4
2719-
resolution: "@next/swc-win32-arm64-msvc@npm:15.5.4"
2717+
"@next/swc-win32-arm64-msvc@npm:16.0.1":
2718+
version: 16.0.1
2719+
resolution: "@next/swc-win32-arm64-msvc@npm:16.0.1"
27202720
conditions: os=win32 & cpu=arm64
27212721
languageName: node
27222722
linkType: hard
27232723

2724-
"@next/swc-win32-x64-msvc@npm:15.5.4":
2725-
version: 15.5.4
2726-
resolution: "@next/swc-win32-x64-msvc@npm:15.5.4"
2724+
"@next/swc-win32-x64-msvc@npm:16.0.1":
2725+
version: 16.0.1
2726+
resolution: "@next/swc-win32-x64-msvc@npm:16.0.1"
27272727
conditions: os=win32 & cpu=x64
27282728
languageName: node
27292729
linkType: hard
@@ -15530,23 +15530,23 @@ __metadata:
1553015530
languageName: node
1553115531
linkType: hard
1553215532

15533-
"next@npm:^15.5.4":
15534-
version: 15.5.4
15535-
resolution: "next@npm:15.5.4"
15536-
dependencies:
15537-
"@next/env": 15.5.4
15538-
"@next/swc-darwin-arm64": 15.5.4
15539-
"@next/swc-darwin-x64": 15.5.4
15540-
"@next/swc-linux-arm64-gnu": 15.5.4
15541-
"@next/swc-linux-arm64-musl": 15.5.4
15542-
"@next/swc-linux-x64-gnu": 15.5.4
15543-
"@next/swc-linux-x64-musl": 15.5.4
15544-
"@next/swc-win32-arm64-msvc": 15.5.4
15545-
"@next/swc-win32-x64-msvc": 15.5.4
15533+
"next@npm:^16.0.1":
15534+
version: 16.0.1
15535+
resolution: "next@npm:16.0.1"
15536+
dependencies:
15537+
"@next/env": 16.0.1
15538+
"@next/swc-darwin-arm64": 16.0.1
15539+
"@next/swc-darwin-x64": 16.0.1
15540+
"@next/swc-linux-arm64-gnu": 16.0.1
15541+
"@next/swc-linux-arm64-musl": 16.0.1
15542+
"@next/swc-linux-x64-gnu": 16.0.1
15543+
"@next/swc-linux-x64-musl": 16.0.1
15544+
"@next/swc-win32-arm64-msvc": 16.0.1
15545+
"@next/swc-win32-x64-msvc": 16.0.1
1554615546
"@swc/helpers": 0.5.15
1554715547
caniuse-lite: ^1.0.30001579
1554815548
postcss: 8.4.31
15549-
sharp: ^0.34.3
15549+
sharp: ^0.34.4
1555015550
styled-jsx: 5.1.6
1555115551
peerDependencies:
1555215552
"@opentelemetry/api": ^1.1.0
@@ -15585,7 +15585,7 @@ __metadata:
1558515585
optional: true
1558615586
bin:
1558715587
next: dist/bin/next
15588-
checksum: 3d9064a9f0c3bb6527a93899fa5b006d3a960e376105da6889693f58eb024ba57c74fd4f169c52316121f11990e62b02f04031efb17b8d34c9372a8298539b2c
15588+
checksum: 42e0a6973131324780cb94b257b1193352581df5d351633c62b63d3429519aac953ae62e180b46b255564febfadeb237ec38f8fe38aca55028c375590de0e2ba
1558915589
languageName: node
1559015590
linkType: hard
1559115591

@@ -18965,7 +18965,7 @@ __metadata:
1896518965
languageName: unknown
1896618966
linkType: soft
1896718967

18968-
"sharp@npm:^0.34.1, sharp@npm:^0.34.3":
18968+
"sharp@npm:^0.34.1, sharp@npm:^0.34.4":
1896918969
version: 0.34.4
1897018970
resolution: "sharp@npm:0.34.4"
1897118971
dependencies:
@@ -20776,7 +20776,7 @@ __metadata:
2077620776
match-sorter: ^8.0.0
2077720777
mersenne-twister: ^1.1.0
2077820778
motion: ^12.7.4
20779-
next: ^15.5.4
20779+
next: ^16.0.1
2078020780
next-plausible: ^3.12.4
2078120781
next-recompose-plugins: ^3.0.1
2078220782
notion-client: 7.3.0

0 commit comments

Comments
 (0)