Pages 'Building application' is very slow or fails at random.

I've enabled build caching, and I'm using the v2 build environment. When it works 50% of the time, it takes 1 minute, but 30% of the time it takes 6-20 minutes, and 20% fails without a real reason (works when I click Redeploy) Often, it seems to get stuck on 'Downloading node-v17.2.0-linux-x64.tar.gz', but I don't know why it randomly fails.
1 Reply
Chaika
Chaika8mo ago
hmm does it fail on downloading node, or just get stuck there? The nodejs download server is really weak and gets overloaded every so often. If you are using Image v2, and just set your node_version to only specify the major ex. 17, it will use the preinstalled version (supported for 12-20) rather then redownloading it