[PR #1925] web: bump Next.js to 14.0 for faster local server startup #23312

Closed
opened 2026-02-21 20:20:51 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/1925

State: closed
Merged: Yes


A code running with yarn dev,

Before this PR on NextJs 13.3:

wait  - compiling /middleware (client and server)...
event - compiled client and server successfully in 290 ms (341 modules)
wait  - compiling /signin/page (client and server)...
event - compiled client and server successfully in 3.8s (2462 modules)
wait  - compiling...
event - compiled successfully in 458 ms (1278 modules)
wait  - compiling /(commonLayout)/apps/page (client and server)...
event - compiled client and server successfully in 5.3s (5942 modules)
wait  - compiling /(commonLayout)/datasets/page (client and server)...
event - compiled client and server successfully in 2.2s (5993 modules)

With this PR on NextJs 14.0:

 ✓ Compiled /middleware in 184ms (79 modules)
 ○ Compiling /signin ...
 ✓ Compiled /signin in 4.2s (1180 modules)
 ✓ Compiled in 600ms (571 modules)
 ○ Compiling /apps ...
 ✓ Compiled /apps in 1775ms (2586 modules)
 ○ Compiling /datasets ...
 ✓ Compiled /datasets in 503ms (2657 modules)
 ○ Compiling /explore/apps ...
 ✓ Compiled /explore/apps in 835ms (2760 modules)

**Original Pull Request:** https://github.com/langgenius/dify/pull/1925 **State:** closed **Merged:** Yes --- - release notes of NextJs - 13.4: https://nextjs.org/blog/next-13-4 - 13.5: https://nextjs.org/blog/next-13-5 - 14.0: https://nextjs.org/blog/next-14 - As `App Router` has become stable since 13.4, the `experimental.appDir` is now removed. - Noticeable speed improvement for starting local dev server with NextJs 13.5 A code running with `yarn dev`, Before this PR on NextJs 13.3: ``` wait - compiling /middleware (client and server)... event - compiled client and server successfully in 290 ms (341 modules) wait - compiling /signin/page (client and server)... event - compiled client and server successfully in 3.8s (2462 modules) wait - compiling... event - compiled successfully in 458 ms (1278 modules) wait - compiling /(commonLayout)/apps/page (client and server)... event - compiled client and server successfully in 5.3s (5942 modules) wait - compiling /(commonLayout)/datasets/page (client and server)... event - compiled client and server successfully in 2.2s (5993 modules) ``` With this PR on NextJs 14.0: ``` ✓ Compiled /middleware in 184ms (79 modules) ○ Compiling /signin ... ✓ Compiled /signin in 4.2s (1180 modules) ✓ Compiled in 600ms (571 modules) ○ Compiling /apps ... ✓ Compiled /apps in 1775ms (2586 modules) ○ Compiling /datasets ... ✓ Compiled /datasets in 503ms (2657 modules) ○ Compiling /explore/apps ... ✓ Compiled /explore/apps in 835ms (2760 modules) ```
yindo added the pull-request label 2026-02-21 20:20:51 -05:00
yindo closed this issue 2026-02-21 20:20:51 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#23312