build times are long
kennymark
HOBBYOP

2 years ago

I am working on a nextjs 14 application with around 90 pages. Build times for this project is around 10m each time. It doesn’t seem to be any faster. Is it possible to cache a few things so build times are shorter

5 Replies

brody
EMPLOYEE

2 years ago

dockerfile or nixpacks?


kennymark
HOBBYOP

2 years ago

nixpacks


kennymark
HOBBYOP

2 years ago

My last frontend nextjs build took almost 20mins


kennymark
HOBBYOP

2 years ago

I used to get around 2 mins on vercel


brody
EMPLOYEE

2 years ago

vercel is hyper optimized for nextjs, they built nextjs after all, you will never be able to get a nextjs build on railway as fast as a nextjs build on vercel, but you could definitely improve it, I would recommend looking into writing an optimized Dockerfile


Loading...