#Nuxt build taking hours in mac m2
1 messages · Page 1 of 1 (latest)
that's really horrific. I can't imagine why that might be. is there anything unusual about your setup?
for one I am building for amd64 from mac m2 machine
I don’t think this is directly related to Nuxt. Rather it’s an issue with Docker running on macOS. Generally I’ve found I/O latency to be dreadful. You could try configuring Docker (if using the Desktop version) to use NFS or SMB file sharing which can improve I/O operation speeds. Alternatively, consider creating volumes particularly for node_modules and build destinations, which helps with caching and shortens the data path from a Linux system call to macOS and back again. Also, take a look at the resources docker has available to it. A few months back I saw an anomaly where on one MacBook a default docker instance was utilising 6GB of RAM but was limited to 2GB on another. Hope you find some resolution.
oh yeah it does seem to have these configurations. thanks @keen citrus will check it out
6549s to 803s nice, 8 CPU, 12GB ram, 2GB swap. 👍