Exit code 1 is a generic failure — the real cause is in the build log, usually within the last 30 lines.
Common causes
Missing environment variable — check Project → Environment
Node version mismatch — pin one in package.json under engines
Out-of-memory — large builds need the 8 GB build tier
Heads up: Logs are retained for 30 days. Download them if you need a longer paper trail.