The Next.js build requires more memory than available (1GB).
Please build locally (npm run build) and upload the 'out' directory to /home/ubuntu/frontend/out.