build times are long
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
Solution:Jump to solution
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
3 Replies
dockerfile or nixpacks?
nixpacks
My last frontend nextjs build took almost 20mins
I used to get around 2 mins on vercel
Solution
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