You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once I run next dev, Next.js starts pre-building all pages in the background at low priority, I hope it will not impact performance (for example we could config the background building threads or CPU & RAM's usage), and will not waste the developer's time to wait for building while navigating to a new page
RAM
Non-Goals
No response
Background
Now, once I run next dev, Next.js will not build any page before I visit any pages(including page router and app router). This results in wasting time waiting for the first page to be built, and while I navigate to another page, I also need to wait for a long time before Next.js builds it.
Proposal
We could run a pages building thread and maintain a task queue of pages building tasks in the background.
In the future, we could store the high-frequency developing page list or recently developed pages to the ".next", then we could build the pages in the order of the priority list.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Goals
next dev
, Next.js starts pre-building all pages in the background at low priority, I hope it will not impact performance (for example we could config the background building threads or CPU & RAM's usage), and will not waste the developer's time to wait for building while navigating to a new pageRAM
Non-Goals
No response
Background
Now, once I run
next dev
, Next.js will not build any page before I visit any pages(including page router and app router). This results in wasting time waiting for the first page to be built, and while I navigate to another page, I also need to wait for a long time before Next.js builds it.Proposal
We could run a pages building thread and maintain a task queue of pages building tasks in the background.
In the future, we could store the high-frequency developing page list or recently developed pages to the ".next", then we could build the pages in the order of the priority list.
Beta Was this translation helpful? Give feedback.
All reactions