Turbopack
Unanswered
American black bear posted this in #help-forum
American black bearOP
Is there already an experimental feature to activate --turbo for next build? Currently, it only works with next dev, but the documentation hints that this might also be available for next build in the future. [https://nextjs.org/docs/architecture/turbopack] Additionally, it would be great if someone could suggest methods to increase the build speed, aside from reducing dependencies
3 Replies
@American black bear Is there already an experimental feature to activate --turbo for next build? Currently, it only works with next dev, but the documentation hints that this might also be available for next build in the future. [https://nextjs.org/docs/architecture/turbopack] Additionally, it would be great if someone could suggest methods to increase the build speed, aside from reducing dependencies
* no it's not possible to use turbopack for build yet
* reduce the time it takes to statically generate the pages. but how long are your builds that you feel it's necessary to reduce the build time?
* reduce the time it takes to statically generate the pages. but how long are your builds that you feel it's necessary to reduce the build time?
American black bearOP
Hundreds of pages have to be exported every minute, that's the problem, could you give me some tricks to speed up the build time?
@American black bear Hundreds of pages have to be exported every minute, that's the problem, could you give me some tricks to speed up the build time?
use ISR:
* return only nth most important pages in your dynamic routes
*
* return only nth most important pages in your dynamic routes
*
export const dynamicParams = true so nextjs will render other pages on-demand. if users access those pages they will be built, if no one visits then they are not built