R
Railway7mo ago
madders

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:
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
Jump to solution
3 Replies
Brody
Brody7mo ago
dockerfile or nixpacks?
madders
maddersOP7mo ago
nixpacks My last frontend nextjs build took almost 20mins I used to get around 2 mins on vercel
Solution
Brody
Brody7mo 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
Want results from more Discord servers?
Add your server