CRITICAL BUILD FAILURE

Insufficient Disk Space

The production deployment for Envitee was aborted. The server's hard disk is at 100% capacity, preventing NPM from writing the necessary build artifacts and dependencies.

~/production/envitee/build.log
> envitee@2.4.0 build
> next build

info
- Linting and checking validity of types...
info
- Creating an optimized production build...
npm ERR!
code ENOSPC
npm ERR!
syscall write
npm ERR!
errno -28
npm ERR!
nospace No space left on device, write
npm ERR!
nospace The action could not be completed because there is no space left on the disk.
npm ERR!
nospace Please free up some disk space and try again.
npm ERR!
nospace
npm ERR!
nospace Target path: /var/www/envitee/.next/cache/webpack/client-production
npm ERR!
A complete log of this run can be found in:
npm ERR!
/home/deployer/.npm/_logs/2023-10-24T14_32_11_842Z-debug-0.log
[Process exited with code 28]

Action Required to Proceed

1. Check current disk usage across all partitions:
df -h
2. Clear NPM cache to instantly free up space:
npm cache clean --force
3. Remove old build logs and temporary system files:
sudo journalctl --vacuum-time=3d && sudo apt-get autoremove